summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-07 16:11:10 +0000
committermidipix <writeonce@midipix.org>2021-05-07 16:11:10 +0000
commitc860590a4bc33dfa817ccad083be9146f9da38b1 (patch)
treecdbaa081d62916ccf3985454725688badaf663b2 /src/logic/slbt_exec_link.c
parente4090ffefb776b9280029b0405ec7d3f5471512a (diff)
downloadslibtool-c860590a4bc33dfa817ccad083be9146f9da38b1.tar.bz2
slibtool-c860590a4bc33dfa817ccad083be9146f9da38b1.tar.xz
slbt_exec_link_create_library_symlink(): create a .dualver symlink as needed.
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index c271e7e..6be924f 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -1783,16 +1783,24 @@ static int slbt_exec_link_create_library_symlink(
char target[PATH_MAX];
char lnkname[PATH_MAX];
- if (ectx->relfilename) {
+ if (ectx->relfilename && dctx->cctx->verinfo.verinfo) {
+ strcpy(target,ectx->relfilename);
+ sprintf(lnkname,"%s.dualver",ectx->dsofilename);
+
+ if (slbt_create_symlink(
+ dctx,ectx,
+ target,lnkname,
+ SLBT_SYMLINK_DEFAULT))
+ return SLBT_NESTED_ERROR(dctx);
+ } else if (ectx->relfilename) {
strcpy(target,ectx->relfilename);
sprintf(lnkname,"%s.release",ectx->dsofilename);
- if (!dctx->cctx->verinfo.verinfo)
- if (slbt_create_symlink(
- dctx,ectx,
- target,lnkname,
- SLBT_SYMLINK_DEFAULT))
- return SLBT_NESTED_ERROR(dctx);
+ if (slbt_create_symlink(
+ dctx,ectx,
+ target,lnkname,
+ SLBT_SYMLINK_DEFAULT))
+ return SLBT_NESTED_ERROR(dctx);
} else {
sprintf(target,"%s%s.%d.%d.%d%s",
ectx->dsobasename,