From 4cbf6a0a12eca4c27cbfcc1e65e74931496f33c7 Mon Sep 17 00:00:00 2001 From: darkcoven Date: Sat, 28 Sep 2013 00:26:28 +0200 Subject: [PATCH] Hide symbols, force CFLAGS --- configure.ac | 2 ++ lib/src/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d063ae5..d0dc40b 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,8 @@ LT_INIT AC_PROG_CC AM_PROG_CC_C_O +CFLAGS="-Wall -Wextra -Os" + # Checks for libraries AC_CHECK_LIB([readline], [readline]) diff --git a/lib/src/Makefile.am b/lib/src/Makefile.am index bc789c4..7a0d5b7 100644 --- a/lib/src/Makefile.am +++ b/lib/src/Makefile.am @@ -4,6 +4,6 @@ lib_LTLIBRARIES = libngadmin.la libngadmin_la_SOURCES = network.c bitrate.c firmware.c libconf.c mirror.c misc.c \ netconf.c ports.c qos.c session.c vlan.c libngadmin_la_CPPFLAGS = -DBUILD_LIB -I$(top_srcdir)/raw/include/ -I$(top_srcdir)/lib/include/ -libngadmin_la_CFLAGS = -fno-strict-aliasing +libngadmin_la_CFLAGS = -fno-strict-aliasing -fvisibility=hidden libngadmin_la_LIBADD = $(top_builddir)/raw/src/librawnsdp.la -- 2.39.5