From f521b61ec120121ce96efddc7a69820788043a9e Mon Sep 17 00:00:00 2001 From: Ashton Meuser Date: Fri, 31 May 2024 15:49:04 -0700 Subject: [PATCH] Add missing macOS system libraries Required for Wasmer >= 4.3.1 --- SConstruct | 2 +- SCsub | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 85fd745..0fc7b28 100644 --- a/SConstruct +++ b/SConstruct @@ -35,7 +35,7 @@ if env["platform"] in ["osx", "macos"]: env.Prepend(CFLAGS=["-std=gnu11"]) env.Prepend(CXXFLAGS=["-std=gnu++14"]) env.Append(CCFLAGS=["-arch", "x86_64", "-Wall", "-g", "-O3"]) - env.Append(LINKFLAGS=["-arch", "x86_64", "-framework", "Security"]) + env.Append(LINKFLAGS=["-arch", "x86_64", "-framework", "Security", "-framework", "CoreFoundation", "-framework", "SystemConfiguration"]) elif env["platform"] == "linux": env.Prepend(CFLAGS=["-std=gnu11"]) env.Prepend(CXXFLAGS=["-std=gnu++14"]) diff --git a/SCsub b/SCsub index 45222a1..df06b8a 100644 --- a/SCsub +++ b/SCsub @@ -22,7 +22,7 @@ if env["platform"] in ["linux", "linuxbsd", "x11"]: env["LIBRUNTIMESUFFIX"] = ".a" elif env["platform"] in ["osx", "macos"]: env["LIBRUNTIMESUFFIX"] = ".a" - env.Append(LINKFLAGS=["-framework", "Security"]) + env.Append(LINKFLAGS=["-framework", "Security", "-framework", "CoreFoundation", "-framework", "SystemConfiguration"]) elif env["platform"] == "windows": if env.get("use_mingw"): # MinGW env["LIBRUNTIMESUFFIX"] = ".a"