From a8ba3db401159aa59480b302f8626c26c95e5413 Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Wed, 4 Oct 2023 17:02:06 +0800 Subject: [PATCH] fix: compiler cannot find libtag in M1 Mac #2 --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 91d408e..7234f88 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,13 @@ linux: g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag strip ncmdump -macos: +macos-intel: + clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag + strip ncmdump + +macos-arm64:export CPATH=/opt/homebrew/include +macos-arm64:export LIBRARY_PATH=/opt/homebrew/lib +macos-arm64: clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag strip ncmdump