diff options
author | midipix <writeonce@midipix.org> | 2016-04-18 18:55:17 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-18 18:55:17 -0400 |
commit | ff4b97b30ba4a326fff361b69f53e474f1914e44 (patch) | |
tree | f182849ee81e49438093e1316da4f6cbb4025916 | |
parent | 9112ac22c80fd3f53262be2da59de35534cdac2c (diff) | |
download | slibtool-ff4b97b30ba4a326fff361b69f53e474f1914e44.tar.bz2 slibtool-ff4b97b30ba4a326fff361b69f53e474f1914e44.tar.xz |
link mode: PE support: make the default implib a symlink to the primary implib.
-rw-r--r-- | src/logic/slbt_exec_link.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 1d7b6a5..3931162 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -880,7 +880,7 @@ int slbt_exec_link( /* PE import libraries */ if (dctx->cctx->drvflags & SLBT_DRIVER_IMAGE_PE) { - /* libfoo.lib.a */ + /* libfoo.x.lib.a */ if ((size_t)snprintf(soname,sizeof(soname),"%s%s%s.%d", dctx->cctx->settings.dsoprefix, dctx->cctx->libname, @@ -891,17 +891,17 @@ int slbt_exec_link( if (slbt_exec_link_create_import_library( dctx,ectx, - ectx->dimpfilename, + ectx->pimpfilename, ectx->deffilename, soname)) return -1; - /* libfoo.x.lib.a */ - if (slbt_exec_link_create_import_library( + /* symlink: libfoo.lib.a --> libfoo.x.lib.a */ + if (slbt_create_symlink( dctx,ectx, ectx->pimpfilename, - ectx->deffilename, - soname)) + ectx->dimpfilename, + false)) return -1; /* libfoo.x.y.z.lib.a */ |