libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

0013-Allow-statically-linking-compiler-support-libraries-.patch (1252B)


      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 
      7 For cases with deplibs_check_method="file_magic ..." (as it is for mingw),
      8 there were previously no way that a static library could be accepted
      9 here.
     10 ---
     11  build-aux/ltmain.in | 11 +++++++++--
     12  1 file changed, 9 insertions(+), 2 deletions(-)
     13 
     14 diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
     15 index e2fb2633..db4d775c 100644
     16 --- a/build-aux/ltmain.in
     17 +++ b/build-aux/ltmain.in
     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 -- 
     37 2.17.1
     38