diff options
Diffstat (limited to 'contrib/autotools-patches/0003-Pass-various-flags-to-GCC.patch')
-rw-r--r-- | contrib/autotools-patches/0003-Pass-various-flags-to-GCC.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/autotools-patches/0003-Pass-various-flags-to-GCC.patch b/contrib/autotools-patches/0003-Pass-various-flags-to-GCC.patch new file mode 100644 index 00000000..6833f297 --- /dev/null +++ b/contrib/autotools-patches/0003-Pass-various-flags-to-GCC.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh | ||
2 | index 21e5e078..ddd6e36f 100755 | ||
3 | --- a/build-aux/ltmain.sh | ||
4 | +++ b/build-aux/ltmain.sh | ||
5 | @@ -7369,11 +7369,14 @@ func_mode_link () | ||
6 | # -fsanitize=* Clang/GCC memory and address sanitizer | ||
7 | # -fuse-ld=* Linker select flags for GCC | ||
8 | # -static-* direct GCC to link specific libraries statically | ||
9 | + # -shared-* direct GCC to link shared version of specific libraries | ||
10 | # -fcilkplus Cilk Plus language extension features for C/C++ | ||
11 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | ||
12 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | ||
13 | -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | ||
14 | - -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus) | ||
15 | + -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-shared-*|-fcilkplus| \ | ||
16 | + -ftree-parallelize-loops=*|-fgnu-tm|-ffast-math| \ | ||
17 | + -funsafe-math-optimizations|-fvtable-verify*) | ||
18 | func_quote_for_eval "$arg" | ||
19 | arg=$func_quote_for_eval_result | ||
20 | func_append compile_command " $arg" | ||