openbsd-ports/lang/node/patches/patch-node_gyp
abieber d128aa5058 Bump node to latest. Tested on amd64 and i386.
- fix Makefile layout
- back to using internal openssl :(

Rough OK from awolk@, OK fcambus@
2017-01-23 16:47:04 +00:00

23 lines
718 B
Plaintext

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