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

12345678910111213141516171819202122232425262728293031
  1. [PATCH 3/6] Pass various runtime library flags to GCC.
  2. * build-aux/ltmain.in (func_mode_link): Pass the
  3. -shared-libgcc and -static-lib* flags along to GCC.
  4. ---
  5. build-aux/ltmain.sh | 5 ++++-
  6. 1 files changed, 4 insertions(+), 1 deletions(-)
  7. diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
  8. index 1821779..eda7790 100644
  9. --- a/build-aux/ltmain.sh
  10. +++ b/build-aux/ltmain.sh
  11. @@ -5084,9 +5084,14 @@ func_mode_link ()
  12. # --sysroot=* for sysroot support
  13. # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
  14. # -stdlib=* select c++ std lib with clang
  15. + # -{shared,static}-libgcc, -static-{libgfortran|libstdc++}
  16. + # link against specified runtime library
  17. -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  18. -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
  19. - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
  20. + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
  21. + -ftree-parallelize-loops=*|-fcilkplus|-fgnu-tm|-ffast-math| \
  22. + -funsafe-math-optimizations|-fvtable-verify*| \
  23. + -shared-libgcc|-static-libgcc|-static-libgfortran|-static-libstdc++)
  24. func_quote_for_eval "$arg"
  25. arg=$func_quote_for_eval_result
  26. func_append compile_command " $arg"
  27. --
  28. 1.7.1