Fixes external library name mangling in gmake makefiles

External libs with a period in the currently get changed.

The period and everything after it is deleted. So:

links {"lua-5.1"}

becomes:

-llua-5

in the makefile. This test checks for that. Fix in next commit
This commit is contained in:
Gaz Liddon 2014-05-08 15:59:38 +01:00
parent 82a9ebda9e
commit 7b30574cea

View File

@ -212,7 +212,7 @@
elseif path.isobjectfile(link) then
table.insert(result, link)
else
table.insert(result, "-l" .. path.getbasename(link))
table.insert(result, "-l" .. path.getname(link))
end
end