Configure, sysroot: add --sysroot to cppflags
authorBrian Fraser <fraserbn@gmail.com>
Mon, 30 Dec 2013 05:33:05 +0000 (02:33 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Tue, 14 Jan 2014 02:52:01 +0000 (23:52 -0300)
Configure

index e679e50..ab60b3a 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1970,6 +1970,11 @@ if test "X$sysroot" != X; then
             'undef'|*)
                 ldflags="$ldflags --sysroot=$sysroot"
         esac
+        case "$cppflags" in
+            *sysroot*) ;;
+            'undef'|*)
+                cppflags="$cppflags --sysroot=$sysroot"
+        esac
         # lddlflags updated below in lddlflags section;
         # same with cccdlflags
   ;;