0003-Pass-various-runtime-library-flags-to-GCC.mingw.mod.patch 1.8 KB

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