summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-21 09:50:26 -0400
committermidipix <writeonce@midipix.org>2018-06-21 10:37:49 -0400
commit2baf1cc107ba6041a3856b77d33140ac876ad6f0 (patch)
tree78d2eaec68e175f8c6505f17b839a36d4f79c839 /src/logic/slbt_exec_link.c
parent2900877604e4fac83e49ed98536b0fcdf01055a8 (diff)
downloadslibtool-2baf1cc107ba6041a3856b77d33140ac876ad6f0.tar.bz2
slibtool-2baf1cc107ba6041a3856b77d33140ac876ad6f0.tar.xz
link mode: --disable-{shared|static}: use differently-named placeholders.
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 542448c..5cf3355 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -200,7 +200,6 @@ static int slbt_adjust_linker_argument(
char * slash;
char * dot;
char base[PATH_MAX];
- char slnk[PATH_MAX];
if (*arg == '-')
return 0;
@@ -229,8 +228,7 @@ static int slbt_adjust_linker_argument(
if (fpic) {
sprintf(dot,"%s",dsosuffix);
- if (!slbt_readlink(arg,slnk,sizeof(slnk))
- && !(strcmp(slnk,"/dev/null")))
+ if (slbt_symlink_is_a_placeholder(arg))
sprintf(dot,"%s",arsuffix);
else if ((fdlib = open(arg,O_RDONLY)) >= 0)
close(fdlib);