From 4465e9b33f5749f0dff267a23c5e1d478ec44bd4 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara <vittorio.giovara@savoirfairelinux.com> Date: Thu, 3 Jul 2014 17:31:58 -0400 Subject: [PATCH] configure: apply different flags on platforms Refs: #46762 Change-Id: I0a5ec68c26f583a5e4fb9a6b120ec6ae5ba06f82 --- daemon/configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/daemon/configure.ac b/daemon/configure.ac index bc3385339c..699879dedb 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -147,6 +147,21 @@ AS_IF([test -n "${CONTRIB_DIR}"], [ AC_SUBST(CONTRIB_DIR) +#TODO: convert this in proper autoconf/autotool tests +AC_CANONICAL_HOST +case $host_os in + linux*) + # Necessary for linking .a to a .so + LDFLAGS+=" -Wl,-Bsymbolic" + ;; + darwin*) + # Link with the old C++ ABI + # (equivalent to setting minimum osx target to 10.8) + LDFLAGS+=" -lstdc++" + ;; +esac + + dnl Check for pjproject PKG_CHECK_MODULES(PJPROJECT, libpjproject,, AC_MSG_ERROR([Missing pjproject files])) -- GitLab