mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
configure: apply different flags on platforms
Refs: #46762 Change-Id: I0a5ec68c26f583a5e4fb9a6b120ec6ae5ba06f82
This commit is contained in:

committed by
Tristan Matthews

parent
88bae29548
commit
4465e9b33f
@ -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]))
|
||||
|
||||
|
Reference in New Issue
Block a user