#1179 closed defect (fixed)
Warnings building Premake on OS X
Reported by: | historic_bruno | Owned by: | leper |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Alpha 11 |
Component: | Build & Packages | Keywords: | osx, ld |
Cc: | Yves | Patch: |
Description (last modified by )
I get the following warnings running ./update-workspaces.sh
with Apple's Command Line Tools for Xcode - February 2012:
Linking Premake4 clang: warning: argument unused during compilation: '-rdynamic' ld: warning: option -s is obsolete and being ignored
The ld
warning is not new, but seems the more serious, if that option gets removed in the future it would turn into an error. I don't know if that will happen since it would break compatibility. From the ld
manpage on OSX:
-s Completely strip the output, including removing the sym- bol table. This file format variant is no longer sup- ported. This option is obsolete.
Doesn't seem like an especially useful option anyway :)
Is it possible to generate the contents of premake4\build\gmake.unix
for each OS? FreeBSD even encounters an error building Premake, as there's no libdl (the -ldl
linker flag causes an error). It seems best if we don't assume a single "Unix" build is good enough because there are a variety of conflicting situations.
Change History (4)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 12 years ago
Milestone: | Backlog → Alpha 11 |
---|
I went with some sed magic instead of completely separate makefiles (as they only differ in some aspects) and we would need some additional OS specific logic in each case (the BSD -ldl
thing is handled in the same way).
comment:4 by , 5 years ago
Description: | modified (diff) |
---|
clang: warning: argument unused during compilation: '-rdynamic'
I get that one when compiling with clang 8 on linux: #5582.
In 11995: