premake / premake-4.x

Premake 4
BSD 3-Clause "New" or "Revised" License
74 stars 20 forks source link

"-Wl,-x", "-s" flags on OS X (Yosemite) using Clang #1

Open JasherIO opened 9 years ago

JasherIO commented 9 years ago

While trying to build Google Test on OS X, using http://jimgarrison.org/techblog/googletest-premake4.html, I ran into "ld: internal error: atom not found in symbolIndex ..." error. As seen before in http://industriousone.com/topic/how-remove-flags-ldflags, removal of the flags in the makefiles fixes the issue. gcc.lua has been updated since the last issue, but it seems to be an issue with Yosemite. I commented out lines 140-146 ("if not cfg.flags.Symbols then" ...) in gcc.lua, but I'm sure a more elegant solution would check for the OS version. After commenting those lines out, everything has worked.

OS: System Version: OS X 10.10.3 (14D136) Kernel Version: Darwin 14.3.0

Clang: Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.3.0 Thread model: posix

Thanks for your hard work! I really enjoy using Premake.