From: Vincent Lefevre Date: Fri, 3 May 2019 13:19:19 +0000 (+0200) Subject: libtool: pass more flags to the linker X-Git-Tag: v2.5.1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b73c116e4f1c94b8f6c4ab60c7ec2036611fc6;p=thirdparty%2Flibtool.git libtool: pass more flags to the linker Resolves bug 17750. * build-aux/ltmain.in (func_mode_link): In the flags to be passed through unchanged, also pass -static-* and -fcilkplus. --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 352188302..447854033 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -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"