ports/devel/gyp/patches/patch-test_module_src_module_gyp

15 lines
399 B
Text

Index: test/module/src/module.gyp
--- test/module/src/module.gyp.orig
+++ test/module/src/module.gyp
@@ -17,6 +17,11 @@
'cflags': ['-fPIC'],
'libraries': ['-ldl'],
}],
+ ['OS=="openbsd"', {
+ 'defines': ['PLATFORM_LINUX'],
+ # Support 64-bit shared libs (also works fine for 32-bit).
+ 'cflags': ['-fPIC'],
+ }],
],
},
'targets': [