Allow Darwin SO with undefined symbols
Pull-request for branch users/somov/darwin_so_undefined
@@ -1099,6 +1099,10 @@ module DLL_UNIT: LINK_UNIT {
LINK_DYN_LIB_FLAGS+=--fix-elf ${tool:"tools/fix_elf"}
}
+ when ($DARWIN == "yes") {
+ LDFLAGS += -undefined dynamic_lookup
+ }
+
when ($CLANG_COVERAGE && $CLANG_COVERAGE != "no") {
PEERDIR+=library/testing/dump_clang_coverage
}
@@ -1131,7 +1135,7 @@ module PYMODULE: DLL_UNIT {
# -bundle
when ($DARWIN == "yes") {
- LDFLAGS+=-flat_namespace -undefined dynamic_lookup
+ LDFLAGS+=-flat_namespace
}
PYTHON_ADDINCL()
@@ -1148,7 +1152,7 @@ module PYMODULE: DLL_UNIT {
module R_MODULE: DLL_UNIT {
when ($DARWIN == "yes") {
- LDFLAGS+=-flat_namespace -undefined dynamic_lookup
+ LDFLAGS+=-flat_namespace
}
when ($MSVC == "yes" || $CYGWIN == "yes") {
