]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: pass more flags to the linker
authorVincent Lefevre <vincent@vinc17.net>
Fri, 3 May 2019 13:19:19 +0000 (15:19 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 31 May 2024 13:18:34 +0000 (16:18 +0300)
Resolves bug 17750.

* build-aux/ltmain.in (func_mode_link): In the flags to be passed
through unchanged, also pass -static-* and -fcilkplus.

build-aux/ltmain.in

index 3521883028b113ce5f156a16708a6acd5f0df82c..447854033f5f990883b75405f2a619afc1f3e870 100644 (file)
@@ -5414,6 +5414,8 @@ func_mode_link ()
       # -static-libsan       Link with static sanitizer runtimes (Clang)
       # -no-canonical-prefixes Do not expand any symbolic links
       # -fuse-ld=*           Linker select flags for GCC
+      # -static-*            direct GCC to link specific libraries statically
+      # -fcilkplus           Cilk Plus language extension features for C/C++
       # -rtlib=*             select c runtime lib with clang
       # --unwindlib=*        select unwinder library with clang
       # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
@@ -5426,7 +5428,7 @@ func_mode_link ()
       -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
       -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
       -fdiagnostics-color*|-frecord-gcc-switches| \
-      -fuse-ld=*|-Wa,*|-Werror|-Werror=*)
+      -fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)
         func_quote_arg pretty "$arg"
        arg=$func_quote_arg_result
         func_append compile_command " $arg"