ports/devel/gyp/patches/patch-test_module_src_module_gyp

16 lines
399 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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': [