summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-23 18:35:35 -0400
committermidipix <writeonce@midipix.org>2016-09-23 18:35:35 -0400
commitd6e753a79665a44edb2832cb33793914ca549d44 (patch)
tree9644faa91fd7be3506deca83634290f21e48d6a6
parent613e0100bd89b895971bfbad4807a46eabe2fb6c (diff)
downloadslibtool-d6e753a79665a44edb2832cb33793914ca549d44.tar.bz2
slibtool-d6e753a79665a44edb2832cb33793914ca549d44.tar.xz
link mode: add -L.libs for current-directory .la input arguments.
-rw-r--r--src/logic/slbt_exec_link.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 3a3b9c4..c021220 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -424,7 +424,9 @@ static int slbt_exec_link_adjust_argument_vector(
? fgets(darg,st.st_size+1,fdeps)
: 0;
- if ((base = strrchr(lib,'/'))) {
+ if (!(strncmp(lib,".libs/",6))) {
+ *aarg++ = "-L.libs";
+ } else if ((base = strrchr(lib,'/'))) {
if (base - lib == 5) {
if (!(strncmp(&base[-5],".libs/",6)))
base -= 4;