Skip to content
Snippets Groups Projects
Commit 4465e9b3 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews
Browse files

configure: apply different flags on platforms

Refs: #46762
Change-Id: I0a5ec68c26f583a5e4fb9a6b120ec6ae5ba06f82
parent 88bae295
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,21 @@ AS_IF([test -n "${CONTRIB_DIR}"], [ ...@@ -147,6 +147,21 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
AC_SUBST(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 dnl Check for pjproject
PKG_CHECK_MODULES(PJPROJECT, libpjproject,, AC_MSG_ERROR([Missing pjproject files])) PKG_CHECK_MODULES(PJPROJECT, libpjproject,, AC_MSG_ERROR([Missing pjproject files]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment