patch-node_gyp 718 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-node_gyp,v 1.5 2017/01/23 16:47:04 abieber Exp $
  2. --- node.gyp.orig Wed Oct 19 16:02:10 2016
  3. +++ node.gyp Thu Nov 3 08:23:16 2016
  4. @@ -522,7 +522,7 @@
  5. 'NODE_PLATFORM="darwin"',
  6. ],
  7. }],
  8. - [ 'OS=="freebsd"', {
  9. + [ 'OS=="freebsd" or OS=="openbsd"', {
  10. 'libraries': [
  11. '-lutil',
  12. '-lkvm',
  13. @@ -546,6 +546,9 @@
  14. # rather than gyp's preferred "solaris"
  15. 'NODE_PLATFORM="sunos"',
  16. ],
  17. + }],
  18. + [ 'OS=="openbsd"', {
  19. + 'ldflags': [ '-rdynamic' ],
  20. }],
  21. [ '(OS=="freebsd" or OS=="linux") and node_shared=="false"', {
  22. 'ldflags': [ '-Wl,-z,noexecstack',