Only use --no-undefined link flag on Linux, because it is only present in GNU ld.
This was SVN commit r7024.
This commit is contained in:
parent
717db156fc
commit
21d4808de3
@ -166,9 +166,11 @@ function package_set_build_flags()
|
||||
-- non-IEEE-conformant results, but haven't noticed any trouble so far.
|
||||
"-ffast-math",
|
||||
})
|
||||
tinsert(package.linkoptions, {
|
||||
"-Wl,--no-undefined",
|
||||
})
|
||||
if OS == "linux" then
|
||||
tinsert(package.linkoptions, {
|
||||
"-Wl,--no-undefined",
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
tinsert(package.buildoptions, {
|
||||
|
Loading…
Reference in New Issue
Block a user