diff options
author | midipix <writeonce@midipix.org> | 2016-04-18 19:49:34 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-18 19:58:55 -0400 |
commit | dbd229f23d887698fc0ea8c66602c78bb29cdf1c (patch) | |
tree | dc479c7daefdce731bc8457869a574b46bccd84e | |
parent | 13b6d8f84c98ab31309f5653fe158022ea986a23 (diff) | |
download | slibtool-dbd229f23d887698fc0ea8c66602c78bb29cdf1c.tar.bz2 slibtool-dbd229f23d887698fc0ea8c66602c78bb29cdf1c.tar.xz |
link mode: PE support: create libfoo.so.x as a copy of libfoo.so.x.y.z.
-rw-r--r-- | src/logic/slbt_exec_link.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 3931162..0275455 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -793,10 +793,15 @@ static int slbt_exec_link_create_library_symlink( else strcpy(lnkname,ectx->dsofilename); - return slbt_create_symlink( - dctx,ectx, - target,lnkname, - false); + if (fmajor && (dctx->cctx->drvflags & SLBT_DRIVER_IMAGE_PE)) + return slbt_copy_file( + dctx,ectx, + target,lnkname); + else + return slbt_create_symlink( + dctx,ectx, + target,lnkname, + false); } int slbt_exec_link( |