diff options
-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; |