diff options
Diffstat (limited to 'tests/actions/make/test_make_linking.lua')
-rw-r--r-- | tests/actions/make/test_make_linking.lua | 17 |
1 files changed, 17 insertions, 0 deletions
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 |