From dbd229f23d887698fc0ea8c66602c78bb29cdf1c Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 18 2016 23:58:55 +0000 Subject: link mode: PE support: create libfoo.so.x as a copy of libfoo.so.x.y.z. --- 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(