premake-4.x icon indicating copy to clipboard operation
premake-4.x copied to clipboard

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

Open JasherIO opened this issue 10 years ago • 0 comments

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.

JasherIO avatar Jun 16 '15 16:06 JasherIO