Skip to content

Commit

Permalink
Add missing macOS system libraries
Browse files Browse the repository at this point in the history
Required for Wasmer >= 4.3.1
  • Loading branch information
Ashton Meuser authored and Ashton Meuser committed May 31, 2024
1 parent c2a3986 commit f521b61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
2 changes: 1 addition & 1 deletion SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f521b61

Please sign in to comment.