node-yara-rs

git clone git://archive.git.mtrnord.blog/MTRNord/node-yara-rs.git
Log | Files | Refs | README | LICENSE

commit c3012d86c5b90ee1796ab868e0ea3c2e0315f969
parent 31dea4d858e52de90935c24cb4610e6a30940464
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun,  1 Oct 2023 15:24:20 +0200

Try to fix openssl on apple arm64

Diffstat:
MCargo.toml | 3+++
MMakefile | 6+++---
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -15,6 +15,9 @@ napi = { version = "2.12.2", default-features = false, features = [ napi-derive = "2.12.2" yara = { version = "0.21.0", features = ["yara-static", "openssl-static"] } +[target.aarch64-apple-darwin.dependencies] +yara = { version = "0.21.0", features = ["yara-static"] } + [build-dependencies] napi-build = "2.0.1" diff --git a/Makefile b/Makefile @@ -1,8 +1,6 @@ BASE=$(shell pwd) OSNAME=$(shell uname) -CFGOPTS += --with-crypto - ifeq ($(OSNAME),Darwin) CFLAGS += -I/usr/local/include/node CFLAGS += -I/usr/local/include @@ -10,7 +8,9 @@ LDFLAGS += -L/usr/local/lib endif ifeq ($(findstring arm64,$(CFLAGS)),arm64) - CFGOPTS += --host=aarch64-apple-darwin +CFGOPTS += --host=aarch64-apple-darwin +else +CFGOPTS += --with-crypto endif YARA?=4.3.2