From 2d2cb445c0b61eae1aa207ea41f36044633f7a7e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 31 Mar 2014 08:27:11 -0400 Subject: [PATCH] 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. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) 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.*)