diff --git a/lib/wx/configure b/lib/wx/configure index 6cb5ce03b48c..9789690d8570 100755 --- a/lib/wx/configure +++ b/lib/wx/configure @@ -4415,7 +4415,7 @@ esac case $host_os in darwin*) - LDFLAGS="$MAC_MIN -bundle -flat_namespace -undefined warning -fPIC $LDFLAGS" + LDFLAGS="$MAC_MIN -bundle -twolevel_namespace -undefined warning -fPIC $LDFLAGS" # Check sizof_void_p as future will hold 64bit MacOS wx if test $ac_cv_sizeof_void_p = 4; then LDFLAGS="-m32 $LDFLAGS" diff --git a/lib/wx/configure.in b/lib/wx/configure.in index 4d1e331ea3f1..ecb3b9db2109 100644 --- a/lib/wx/configure.in +++ b/lib/wx/configure.in @@ -199,7 +199,7 @@ AC_SUBST(OBJC_CFLAGS) case $host_os in darwin*) - LDFLAGS="$MAC_MIN -bundle -flat_namespace -undefined warning -fPIC $LDFLAGS" + LDFLAGS="$MAC_MIN -bundle -twolevel_namespace -undefined warning -fPIC $LDFLAGS" # Check sizof_void_p as future will hold 64bit MacOS wx if test $ac_cv_sizeof_void_p = 4; then LDFLAGS="-m32 $LDFLAGS"