aboutsummaryrefslogtreecommitdiff
path: root/contrib/autotools-patches/0003-Pass-various-runtime-library-flags-to-GCC.mingw-mod.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/autotools-patches/0003-Pass-various-runtime-library-flags-to-GCC.mingw-mod.patch')
-rw-r--r--contrib/autotools-patches/0003-Pass-various-runtime-library-flags-to-GCC.mingw-mod.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/autotools-patches/0003-Pass-various-runtime-library-flags-to-GCC.mingw-mod.patch b/contrib/autotools-patches/0003-Pass-various-runtime-library-flags-to-GCC.mingw-mod.patch
new file mode 100644
index 00000000..f4815d78
--- /dev/null
+++ b/contrib/autotools-patches/0003-Pass-various-runtime-library-flags-to-GCC.mingw-mod.patch
@@ -0,0 +1,30 @@
1[PATCH 3/6] Pass various runtime library flags to GCC.
2* build-aux/ltmain.in (func_mode_link): Pass the
3-shared-libgcc and -static-lib* flags along to GCC.
4---
5 build-aux/ltmain.sh | 5 ++++-
6 1 files changed, 4 insertions(+), 1 deletions(-)
7
8diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
9index 1821779..eda7790 100644
10--- a/build-aux/ltmain.sh
11+++ b/build-aux/ltmain.sh
12@@ -5084,9 +5084,14 @@ func_mode_link ()
13 # --sysroot=* for sysroot support
14 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
15 # -stdlib=* select c++ std lib with clang
16+ # -{shared,static}-libgcc, -static-{libgfortran|libstdc++}
17+ # link against specified runtime library
18 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
19 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
20- -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
21+ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
22+ -ftree-parallelize-loops=*|-fcilkplus|-fgnu-tm|-ffast-math| \
23+ -funsafe-math-optimizations|-fvtable-verify*| \
24+ -shared-libgcc|-static-libgcc|-static-libgfortran|-static-libstdc++)
25 func_quote_for_eval "$arg"
26 arg=$func_quote_for_eval_result
27 func_append compile_command " $arg"
28--
291.7.1
30