3 ?RCS: You may distribute under the terms of either the GNU General Public
4 ?RCS: License or the Artistic License, as specified in the README file.
9 ?S: This variable is empty unless supplied by the Configure user.
10 ?S: It can contain a path to an alternative root directory, under which
11 ?S: headers and libraries for the compilation target can be found. This
12 ?S: is generally used when cross-compiling using a gcc-like compiler.
21 ?LINT:extern cccdlflags
22 ?X: _sysroot is later used in ccflags, but we do not want it in config.sh
23 ?T:var xxx path _sysroot
24 : Set 'sysroot' to change the logical root directory to your headers and libraries see man gcc
25 : This is primarily meant for cross-compile environments, and may fail to be useful in other cases
26 if test "X$sysroot" = X; then
31 echo "Using $sysroot to find your headers and libraries, adding to ccflags"
32 # _sysroot is used in places where we need --sysroot=foo
33 # but using the rest of the flags could cause issues.
34 _sysroot="--sysroot=$sysroot";
38 ccflags="$ccflags $_sysroot"
43 ldflags="$ldflags $_sysroot"
48 cppflags="$cppflags $_sysroot"
50 # lddlflags updated below in lddlflags section;
51 # same with cccdlflags
55 # Adjust some defaults to also use $sysroot
56 for var in xlibpth loclibpth locincpth glibpth; do
60 eval $var=\"\$$var $sysroot$path\"