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.

This commit is contained in:
Michael Jerris 2014-03-31 08:27:11 -04:00
parent 9b56dff275
commit 2d2cb445c0
1 changed files with 6 additions and 0 deletions

View File

@ -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.*)