From 1ab1d57421cab892d5b41a4da4a277310e2dc297 Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Tue, 29 Jan 2013 10:04:11 -0500 Subject: Fix linking to external libraries outside of project folder --- tests/actions/make/test_make_linking.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/actions/make/test_make_linking.lua b/tests/actions/make/test_make_linking.lua index f9d9c5d..ef85353 100644 --- a/tests/actions/make/test_make_linking.lua +++ b/tests/actions/make/test_make_linking.lua @@ -106,3 +106,20 @@ ]] end + +-- +-- When referencing an external library via a path, the directory +-- should be added to the library search paths, and the library +-- itself included via an -l flag. +-- + + function suite.onExternalLibraryWithPath() + location "MyProject" + links { "libs/SomeLib" } + prepare() + test.capture [[ + ALL_LDFLAGS += $(LDFLAGS) -L../libs -s + LIBS += -lSomeLib + LDDEPS += + ]] + end -- cgit v1.2.3