libmicrohttpd2

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

0003-Pass-various-runtime-library-flags-to-GCC.mingw.mod.patch (1828B)


      1 The patch below was modified to work on top of Debian patches
      2 
      3 [PATCH 3/6] Pass various runtime library flags to GCC.
      4 * build-aux/ltmain.in (func_mode_link): Pass the
      5 -shared-libgcc and -static-lib* flags along to GCC.
      6 
      7 diff -urN libtool-2.4.7/build-aux/ltmain.in.orig libtool-2.4.7/build-aux/ltmain.in
      8 --- libtool-2.4.7/build-aux/ltmain.in.orig	2022-05-25 13:57:50.311734300 +0200
      9 +++ libtool-2.4.7/build-aux/ltmain.in	2022-05-25 14:01:54.621866600 +0200
     10 @@ -7559,15 +7559,19 @@
     11        # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
     12        # -specs=*             GCC specs files
     13        # -stdlib=*            select c++ std lib with clang
     14 +      # -{shared,static}-libgcc, -static-{libgfortran|libstdc++}
     15 +      #                      link against specified runtime library
     16        # -fsanitize=*         Clang/GCC memory and address sanitizer
     17        # -fuse-ld=*           Linker select flags for GCC
     18 -      # -static-*            direct GCC to link specific libraries statically
     19        # -fcilkplus           Cilk Plus language extension features for C/C++
     20        # -Wa,*                Pass flags directly to the assembler
     21        -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
     22        -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
     23        -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
     24 -      -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
     25 +      -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*|-ftree-parallelize-loops=*| \
     26 +      -fcilkplus|-fgnu-tm|-ffast-math|-funsafe-math-optimizations| \
     27 +      -fvtable-verify*|-shared-libgcc|-static-libgcc|-static-libgfortran| \
     28 +      -static-libstdc++)
     29          func_quote_arg pretty "$arg"
     30  	arg=$func_quote_arg_result
     31          func_append compile_command " $arg"