diff options
author | midipix <writeonce@midipix.org> | 2018-06-21 09:50:26 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-06-21 10:37:49 -0400 |
commit | 2baf1cc107ba6041a3856b77d33140ac876ad6f0 (patch) | |
tree | 78d2eaec68e175f8c6505f17b839a36d4f79c839 /src/logic/slbt_exec_install.c | |
parent | 2900877604e4fac83e49ed98536b0fcdf01055a8 (diff) | |
download | slibtool-2baf1cc107ba6041a3856b77d33140ac876ad6f0.tar.bz2 slibtool-2baf1cc107ba6041a3856b77d33140ac876ad6f0.tar.xz |
link mode: --disable-{shared|static}: use differently-named placeholders.
Diffstat (limited to 'src/logic/slbt_exec_install.c')
-rw-r--r-- | src/logic/slbt_exec_install.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index ea795e3..2d98881 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -424,6 +424,10 @@ static int slbt_exec_install_entry( /* source (build) symlink target */ if (slbt_readlink(slnkname,target,sizeof(target)) < 0) { + /* -all-static? */ + if (slbt_symlink_is_a_placeholder(slnkname)) + return 0; + /* -avoid-version? */ if (stat(slnkname,&st)) return SLBT_SYSTEM_ERROR(dctx); @@ -447,10 +451,6 @@ static int slbt_exec_install_entry( return 0; } - /* -all-static? */ - if (!strcmp(target,"/dev/null")) - return 0; - /* srcfile: .libs/libfoo.so.x.y.z */ slash = strrchr(srcfile,'/'); strcpy(++slash,target); |