configure: apply different flags on platforms

Refs: #46762
Change-Id: I0a5ec68c26f583a5e4fb9a6b120ec6ae5ba06f82
This commit is contained in:
Vittorio Giovara
2014-07-03 17:31:58 -04:00
committed by Tristan Matthews
parent 88bae29548
commit 4465e9b33f

View File

@ -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]))