Skip to content

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

@JasherIO

Description

@JasherIO

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions