summarylogtreecommitdiffstats
path: root/0003-Pass-various-runtime-library-flags-to-GCC.mingw.patch
diff options
context:
space:
mode:
authorAndrew Sun2019-09-15 12:49:23 -0400
committerAndrew Sun2019-09-15 12:49:23 -0400
commit86f90c3e0ab2b787f87acac05f6b455b251fa35f (patch)
treed10064c9c63beafa0c48e49d657cbf73e90271c7 /0003-Pass-various-runtime-library-flags-to-GCC.mingw.patch
parentfd0c9b58c5307856b113ca7d0fbfec6eb8783568 (diff)
downloadaur-86f90c3e0ab2b787f87acac05f6b455b251fa35f.tar.gz
mingw-w64-libtool: update to 2.4.6+42+gb88cebd5
Diffstat (limited to '0003-Pass-various-runtime-library-flags-to-GCC.mingw.patch')
-rw-r--r--0003-Pass-various-runtime-library-flags-to-GCC.mingw.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/0003-Pass-various-runtime-library-flags-to-GCC.mingw.patch b/0003-Pass-various-runtime-library-flags-to-GCC.mingw.patch
new file mode 100644
index 000000000000..fd52f6ed49fb
--- /dev/null
+++ b/0003-Pass-various-runtime-library-flags-to-GCC.mingw.patch
@@ -0,0 +1,31 @@
+[PATCH 3/6] Pass various runtime library flags to GCC.
+* build-aux/ltmain.in (func_mode_link): Pass the
+-shared-libgcc and -static-lib* flags along to GCC.
+---
+ build-aux/ltmain.in | 5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
+index 1821779..eda7790 100644
+--- a/build-aux/ltmain.in
++++ b/build-aux/ltmain.in
+@@ -5378,12 +5378,15 @@ func_mode_link ()
+ # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+ # -specs=* GCC specs files
+ # -stdlib=* select c++ std lib with clang
++ # -{shared,static}-libgcc, -static-{libgfortran|libstdc++}
++ # link against specified runtime library
+ # -fsanitize=* Clang/GCC memory and address sanitizer
+ # -fuse-ld=* Linker select flags for GCC
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
+- -specs=*|-fsanitize=*|-fuse-ld=*)
++ -specs=*|-fsanitize=*|-fuse-ld=*|-shared-libgcc|-static-libgcc| \
++ -static-libgfortran|-static-libstdc++)
+ func_quote_arg pretty "$arg"
+ arg=$func_quote_arg_result
+ func_append compile_command " $arg"
+--
+1.7.1
+