diff --git a/build/ltconfig b/build/ltconfig index 088583ada1..34cd1a3d90 100755 --- a/build/ltconfig +++ b/build/ltconfig @@ -1375,7 +1375,7 @@ else darwin* | rhapsody*) allow_undefined_flag='-undefined warning' - archive_cmds='$CC $(if [ "$module" = "yes" ]; then echo -bundle; else echo -dynamiclib -undefined suppress; fi) -o $lib $libobjs $deplibs $linkopts' + archive_cmds='$CC $(if [ "$module" = "yes" ]; then echo -bundle; else echo -dynamiclib -flat_namespace -undefined suppress; fi) -o $lib $libobjs $deplibs $linkopts' archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' ## What we need is to hardcode the path to the library, not the search path #hardcode_direct=yes