Patch 3466877: Removed -flat_namespace from Mac OS X flags (Konstantin Tokarev)

This commit is contained in:
Jason Perkins 2012-10-18 17:58:41 -04:00
parent 815f89b8bf
commit 752adb830b
3 changed files with 5 additions and 3 deletions

View File

@ -86,6 +86,8 @@
* Patch 3367642: Add support for targetextension property to Xcode
* Patch 3435716: Fix for PS3 config generation in VS2010 (Jake)
* Patch 3441850: Use debug.traceback() as error handler (Konstantin Tokarev)
* Patch 3462994: Make flag values case-insensitive (Konstantin Tokarev)
* Patch 3466877: Removed -flat_namespace from Mac OS X flags (Konstantin Tokarev)
-------

View File

@ -182,7 +182,7 @@
if cfg.kind == premake.SHAREDLIB then
if cfg.system == premake.MACOSX then
flags = table.join(flags, { "-dynamiclib", "-flat_namespace" })
table.insert(flags, "-dynamiclib")
else
table.insert(flags, "-shared")
end
@ -392,7 +392,7 @@
if cfg.kind == "SharedLib" then
if cfg.system == "macosx" then
result = table.join(result, { "-dynamiclib", "-flat_namespace" })
table.insert(result, "-dynamiclib")
else
table.insert(result, "-shared")
end

View File

@ -113,7 +113,7 @@
system "MacOSX"
kind "SharedLib"
prepare()
test.isequal({ "-Wl,-x", "-dynamiclib", "-flat_namespace" }, gcc.getldflags(cfg))
test.isequal({ "-Wl,-x", "-dynamiclib" }, gcc.getldflags(cfg))
end