From: Michael Jerris Date: Mon, 31 Mar 2014 12:27:11 +0000 (-0400) Subject: push sysroot down to other libs and things that don't use libtool as well, so you... X-Git-Tag: v1.5.12~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d2cb445c0b61eae1aa207ea41f36044633f7a7e;p=thirdparty%2Ffreeswitch.git push sysroot down to other libs and things that don't use libtool as well, so you don't need to specify it in a bunch of different ways when using it. --- diff --git a/configure.ac b/configure.ac index 3962ee4c93..583e2fca03 100644 --- a/configure.ac +++ b/configure.ac @@ -578,6 +578,12 @@ path_push_unique () { eval export $1="$2:$x" } +if test -n $lt_sysroot ; then + APR_ADDTO(CFLAGS, --sysroot=$lt_sysroot) + APR_ADDTO(CXXFLAGS, --sysroot=$lt_sysroot) + APR_ADDTO(LDFLAGS, --sysroot=$lt_sysroot) +fi + # tweak platform specific flags case "$host" in *darwin13.*|*darwin12.*|*darwin11.*)