mirror of
https://github.com/openbsd/ports.git
synced 2026-06-19 07:54:00 +02:00
2a47eaa6e7
testing help from Laurent Cheylus yara is in maintenance mode upstream, critical fixes only, the replacement is: https://virustotal.github.io/yara-x/blog/yara-x-is-stable/
24 lines
723 B
Plaintext
24 lines
723 B
Plaintext
Index: setup.py
|
|
--- setup.py.orig
|
|
+++ setup.py
|
|
@@ -140,7 +140,7 @@ class BuildExtCommand(build_ext):
|
|
def initialize_options(self):
|
|
|
|
build_ext.initialize_options(self)
|
|
- self.dynamic_linking = None
|
|
+ self.dynamic_linking = True
|
|
self.enable_magic = None
|
|
self.enable_cuckoo = None
|
|
self.enable_dex = None
|
|
@@ -266,6 +266,10 @@ class BuildExtCommand(build_ext):
|
|
|
|
if has_header('stdbool.h'):
|
|
module.define_macros.append(('HAVE_STDBOOL_H', '1'))
|
|
+
|
|
+ if 'openbsd' in self.plat_name:
|
|
+ module.include_dirs.append('${LOCALBASE}/include')
|
|
+ module.library_dirs.append('${LOCALBASE}/lib')
|
|
|
|
if has_function('memmem'):
|
|
module.define_macros.append(('HAVE_MEMMEM', '1'))
|