diff options
author | Jason Perkins <starkos@industriousone.com> | 2013-01-29 19:04:11 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2013-01-29 19:04:11 +0400 |
commit | 1ab1d57421cab892d5b41a4da4a277310e2dc297 (patch) | |
tree | 20933a9bf54fb27fbfe78f1eed184a8917eabea8 /tests | |
parent | 53b6b39a8d1db9b6cabaf190c326a42064217266 (diff) |
Fix linking to external libraries outside of project folder
Diffstat (limited to 'tests')
-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 |