summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-12-30 02:33:05 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-13 23:52:01 -0300
commit24e2d532182eb0c566d5c21c140f82b46e22a527 (patch)
tree4e0e9fe7d42233f4ec8eb1987b9b121fca1c159f /Configure
parent98b12e44bdf730698c03a5a4d8fc93c41d931637 (diff)
downloadperl-24e2d532182eb0c566d5c21c140f82b46e22a527.tar.gz
Configure, sysroot: add --sysroot to cppflags
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
;;