aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorTobias Engel <t-openbsc@tobias.org>2012-10-24 17:52:52 +0200
committerHarald Welte <laforge@gnumonks.org>2012-10-27 10:03:12 +0200
commit597460fd97f485abd5bc61f6718ddc8e6b9a0f25 (patch)
treee11b11deda2b07d62984abc191805bd33c22f521 /configure.ac
parent2db368ee8d440312dd0a7481e9b9e30d2921096c (diff)
Do not use --version-script linker flag on OSX
Add a check to not use --version-script linker flag if compiled on OSX since it doesn't exist there
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f119c90..24ddd0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,18 @@ LT_INIT([pic-only])
AC_CONFIG_MACRO_DIR([m4])
+dnl check os: some linker flags not available on osx
+case $host in
+*-darwin*)
+ ;;
+*)
+ LTLDFLAGS_OSMOGB='-Wl,--version-script=$(srcdir)/libosmogb.map'
+ LTLDFLAGS_OSMOGSM='-Wl,--version-script=$(srcdir)/libosmogsm.map'
+ ;;
+esac
+AC_SUBST(LTLDFLAGS_OSMOGB)
+AC_SUBST(LTLDFLAGS_OSMOGSM)
+
dnl checks for header files
AC_HEADER_STDC
AC_CHECK_HEADERS(execinfo.h sys/select.h sys/socket.h syslog.h ctype.h)