summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-10 03:24:38 -0400
committermidipix <writeonce@midipix.org>2018-07-10 03:24:38 -0400
commit6a1ae75038ff6d45ff3c7bbd4ef090798545e617 (patch)
tree5b4476bb4b4734186ac10655dde6c97cc615c83c /src
parenta90a35444d01362f405a1ce5b7fd2babdd59de8f (diff)
downloadslibtool-6a1ae75038ff6d45ff3c7bbd4ef090798545e617.tar.bz2
slibtool-6a1ae75038ff6d45ff3c7bbd4ef090798545e617.tar.xz
slbt_adjust_linker_argument(): properly handle explicit .a/.so arguments.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 267833e..a00a7a8 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -207,6 +207,12 @@ static int slbt_adjust_linker_argument(
if (!(dot = strrchr(arg,'.')))
return 0;
+ if (!(strcmp(dot,arsuffix)))
+ return slbt_get_deps_meta(dctx,arg,depsmeta);
+
+ if (!(strcmp(dot,dsosuffix)))
+ return slbt_get_deps_meta(dctx,arg,depsmeta);
+
if (strcmp(dot,".la"))
return 0;