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:
Matei 2009-07-18 22:37:03 +00:00
parent 717db156fc
commit 21d4808de3

View File

@ -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, {