diff --git a/Templates/configure b/Templates/configure index 6c15a69df..3ee74da53 100755 --- a/Templates/configure +++ b/Templates/configure @@ -2291,7 +2291,7 @@ fi CMAKE_DL_LIBS="" CMAKE_SHLIB_BUILD_FLAGS="-dynamiclib" CMAKE_SHLIB_LINK_FLAGS="" - CMAKE_MODULE_BUILD_FLAGS="-bundle" + CMAKE_MODULE_BUILD_FLAGS="-bundle -flat_namespace -undefined suppress" CMAKE_MODULE_LINK_FLAGS="" CMAKE_SHLIB_RUNTIME_FLAG="" CMAKE_SHLIB_RUNTIME_SEP=":" diff --git a/Templates/configure.in b/Templates/configure.in index c74091bac..88ae78c79 100644 --- a/Templates/configure.in +++ b/Templates/configure.in @@ -137,7 +137,7 @@ case $system in CMAKE_DL_LIBS="" CMAKE_SHLIB_BUILD_FLAGS="-dynamiclib" CMAKE_SHLIB_LINK_FLAGS="" - CMAKE_MODULE_BUILD_FLAGS="-bundle" + CMAKE_MODULE_BUILD_FLAGS="-bundle -flat_namespace -undefined suppress" CMAKE_MODULE_LINK_FLAGS="" CMAKE_SHLIB_RUNTIME_FLAG="" CMAKE_SHLIB_RUNTIME_SEP=":"