path: root/src/gsm/Makefile.am
diff options
authorHarald Welte <laforge@gnumonks.org>2012-04-04 22:05:24 +0200
committerHarald Welte <laforge@gnumonks.org>2012-04-04 22:43:25 +0200
commit1c72bfb2cb00e8e677700643bdefadbb9509b496 (patch)
tree9e6fe0932a5242508ab61e41496a596885b49819 /src/gsm/Makefile.am
parent738f13395d1d8a005011e45ebbc6a869bbcfd9a6 (diff)
libosmogsm: Introduce explicit list of exported symbols
There is now a "libosmogsm.map" file containing an explicit list of to-be-exported symbols. This should prevent us from leaking non-static symbols into the global namespace. A similar scheme should be adopted by all other osmocom libraries
Diffstat (limited to 'src/gsm/Makefile.am')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/Makefile.am b/src/gsm/Makefile.am
index 46d40a11..b65f2a23 100644
--- a/src/gsm/Makefile.am
+++ b/src/gsm/Makefile.am
@@ -3,7 +3,7 @@
INCLUDES = $(all_includes) -I$(top_srcdir)/include
-AM_CFLAGS = -fPIC -Wall
# FIXME: this should eventually go into a milenage/Makefile.am
noinst_HEADERS = milenage/aes.h milenage/aes_i.h milenage/aes_wrap.h \
@@ -21,5 +21,5 @@ libosmogsm_la_SOURCES = a5.c rxlev_stat.c tlv_parser.c comp128.c gsm_utils.c \
milenage/aes-encblock.c milenage/aes-internal.c \
milenage/aes-internal-enc.c milenage/milenage.c
-libosmogsm_la_LDFLAGS = -version-info $(LIBVERSION)
+libosmogsm_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libosmogsm.map -version-info $(LIBVERSION)
libosmogsm_la_LIBADD = $(top_builddir)/src/libosmocore.la