Linking gmake test - checks external lib name isn't mangled
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:
parent
5d38977c99
commit
82a9ebda9e
@ -138,4 +138,22 @@
|
|||||||
ALL_LDFLAGS += $(LDFLAGS) -s -L../libs
|
ALL_LDFLAGS += $(LDFLAGS) -s -L../libs
|
||||||
LIBS += -lSomeLib
|
LIBS += -lSomeLib
|
||||||
]]
|
]]
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- When referencing an external library with a period in the
|
||||||
|
-- file name make sure it appears correctly in the LIBS
|
||||||
|
-- directive. Currently the period and everything after it
|
||||||
|
-- is stripped
|
||||||
|
--
|
||||||
|
|
||||||
|
function suite.onExternalLibraryWithPath()
|
||||||
|
location "MyProject"
|
||||||
|
links { "libs/SomeLib-1.1" }
|
||||||
|
prepare { "libs", }
|
||||||
|
test.capture [[
|
||||||
|
LIBS += -lSomeLib-1.1
|
||||||
|
]]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user