]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
handle sysroot flags
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 28 Jul 2010 21:53:19 +0000 (23:53 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Wed, 11 Aug 2010 18:38:08 +0000 (14:38 -0400)
* libltdl/config/ltmain.m4sh (func_mode_link): Recognize --sysroot
option.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
libltdl/config/ltmain.m4sh

index d67752956b0933a46e0d0f1420457e4f512ee2a0..7153513a1e31118475831c5ffd62ed2ff77b9482 100644 (file)
@@ -4435,7 +4435,7 @@ func_mode_link ()
       # Tru64 UNIX uses -model [arg] to determine the layout of C++
       # classes, name mangling, and exception handling.
       # Darwin uses the -arch flag to determine output architecture.
-      -model|-arch|-isysroot)
+      -model|-arch|-isysroot|--sysroot)
        func_append compiler_flags " $arg"
        func_append compile_command " $arg"
        func_append finalize_command " $arg"
@@ -4632,8 +4632,9 @@ func_mode_link ()
       # -p, -pg, --coverage, -fprofile-*  profiling flags for GCC
       # @file                GCC response files
       # -tp=*                Portland pgcc target processor selection
+      # --sysroot=*          for sysroot support
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
+      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*)
         func_quote_for_eval "$arg"
        arg="$func_quote_for_eval_result"
         func_append compile_command " $arg"