Files
sthen 2a47eaa6e7 update to yara-4.5.5 / py-yara-4.5.2
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/
2026-02-10 18:09:07 +00:00

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'))