summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/Configure b/Configure
index e679e502ba..ab60b3ac5b 100755
--- 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
;;