diff options
author | midipix <writeonce@midipix.org> | 2016-09-23 18:35:35 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-09-23 18:35:35 -0400 |
commit | d6e753a79665a44edb2832cb33793914ca549d44 (patch) | |
tree | 9644faa91fd7be3506deca83634290f21e48d6a6 /src | |
parent | 613e0100bd89b895971bfbad4807a46eabe2fb6c (diff) | |
download | slibtool-d6e753a79665a44edb2832cb33793914ca549d44.tar.bz2 slibtool-d6e753a79665a44edb2832cb33793914ca549d44.tar.xz |
link mode: add -L.libs for current-directory .la input arguments.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_link.c | 4 |
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; |