diff --git a/SConstruct b/SConstruct index b4770ab..8730d29 100644 --- a/SConstruct +++ b/SConstruct @@ -68,6 +68,16 @@ library_name = "libopenvic-dataloader{}{}".format(suffix, env["LIBSUFFIX"]) default_args = [] +# macOS x86_64 requires Cocoa for iconv +if env["platform"] == "macos" and (env["arch"] == "universal" or env["arch"] == "x86_64"): + env.Append( + LINKFLAGS=[ + "-framework", + "Cocoa", + "-Wl,-undefined,dynamic_lookup", + ] + ) + if env["run_ovdl_tests"]: env["build_ovdl_tests"] = True diff --git a/scripts b/scripts index 8524240..d1aefb1 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 852424089bc47404d17444279ff5efdd8bb493a0 +Subproject commit d1aefb1fc7e436c7e1071e2360997ef7f4de1545