aboutsummaryrefslogtreecommitdiff
path: root/contrib/autotools-patches/0013-Allow-statically-linking-compiler-support-libraries-mod.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/autotools-patches/0013-Allow-statically-linking-compiler-support-libraries-mod.patch')
-rw-r--r--contrib/autotools-patches/0013-Allow-statically-linking-compiler-support-libraries-mod.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/autotools-patches/0013-Allow-statically-linking-compiler-support-libraries-mod.patch b/contrib/autotools-patches/0013-Allow-statically-linking-compiler-support-libraries-mod.patch
new file mode 100644
index 00000000..0ae0415f
--- /dev/null
+++ b/contrib/autotools-patches/0013-Allow-statically-linking-compiler-support-libraries-mod.patch
@@ -0,0 +1,38 @@
1From b9f77cae8cfbe850e58cac686fcb4d246b5bfc51 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
3Date: Mon, 19 Aug 2019 13:34:51 +0300
4Subject: [PATCH] Allow statically linking compiler support libraries when
5 linking a library
6
7For cases with deplibs_check_method="file_magic ..." (as it is for mingw),
8there were previously no way that a static library could be accepted
9here.
10---
11 build-aux/ltmain.in | 11 +++++++++--
12 1 file changed, 9 insertions(+), 2 deletions(-)
13
14diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
15index e2fb2633..db4d775c 100644
16--- a/build-aux/ltmain.sh
17+++ b/build-aux/ltmain.sh
18@@ -5870,8 +5870,15 @@ func_mode_link ()
19 fi
20 case $linkmode in
21 lib)
22- # Linking convenience modules into shared libraries is allowed,
23- # but linking other static libraries is non-portable.
24+ # Linking convenience modules and compiler provided static libraries
25+ # into shared libraries is allowed, but linking other static
26+ # libraries is non-portable.
27+ case $deplib in
28+ */libgcc*.$libext | */libclang_rt*.$libext)
29+ deplibs="$deplib $deplibs"
30+ continue
31+ ;;
32+ esac
33 case " $dlpreconveniencelibs " in
34 *" $deplib "*) ;;
35 *)
36--
372.17.1
38