0013-Allow-statically-linking-compiler-support-libraries-.patch 1.2 KB

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