patch-config_nim_cfg 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. $OpenBSD: patch-config_nim_cfg,v 1.3 2017/01/09 10:32:33 juanfra Exp $
  2. --- config/nim.cfg.orig Sun Jan 8 21:33:42 2017
  3. +++ config/nim.cfg Mon Jan 9 02:28:32 2017
  4. @@ -76,7 +76,7 @@ path="$lib/pure"
  5. @end
  6. @if bsd or haiku:
  7. # BSD got posix_spawn only recently, so we deactivate it for osproc:
  8. - define:useFork
  9. + #define:useFork
  10. # at least NetBSD has problems with thread local storage:
  11. tlsEmulation:on
  12. @end
  13. @@ -112,6 +112,8 @@ path="$lib/pure"
  14. @else:
  15. gcc.options.always = "-w"
  16. gcc.cpp.options.always = "-w -fpermissive"
  17. + egcc.options.always = "-w"
  18. + egpp.options.alaways = "-w -fpermissive"
  19. @end
  20. # Configuration for Objective-C compiler:
  21. @@ -155,18 +157,23 @@ clang.objc.options.linker = "-lobjc -lgnustep-base"
  22. gcc.options.linker %= "-L $WIND_BASE/target/lib/usr/lib/ppc/PPC32/common -mrtp -fno-strict-aliasing -D_C99 -D_HAS_C9X -std=c99 -fasm -Wall -Wno-write-strings"
  23. @end
  24. -gcc.options.speed = "-O3 -fno-strict-aliasing"
  25. +gcc.options.speed = "-O2 -fno-strict-aliasing"
  26. gcc.options.size = "-Os"
  27. @if windows:
  28. gcc.options.debug = "-g3 -O0 -gdwarf-3"
  29. @else:
  30. gcc.options.debug = "-g3 -O0"
  31. @end
  32. -gcc.cpp.options.speed = "-O3 -fno-strict-aliasing"
  33. +gcc.cpp.options.speed = "-O2 -fno-strict-aliasing"
  34. gcc.cpp.options.size = "-Os"
  35. gcc.cpp.options.debug = "-g3 -O0"
  36. #passl = "-pg"
  37. +# Configuration for the OpenBSD ports GCC compiler:
  38. +egcc.options.speed = "-O2 -fno-strict-aliasing"
  39. +egcc.options.size = "-Os"
  40. +egcc.options.debug = "-g3 -O0"
  41. +
  42. # Configuration for the LLVM GCC compiler:
  43. llvm_gcc.options.debug = "-g"
  44. llvm_gcc.options.always = "-w"
  45. @@ -176,7 +183,7 @@ llvm_gcc.options.size = "-Os"
  46. # Configuration for the LLVM CLang compiler:
  47. clang.options.debug = "-g"
  48. clang.options.always = "-w"
  49. -clang.options.speed = "-O3"
  50. +clang.options.speed = "-O2"
  51. clang.options.size = "-Os"
  52. # Configuration for the Visual C/C++ compiler: