summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-26 12:15:08 -0400
committermidipix <writeonce@midipix.org>2016-04-26 12:15:08 -0400
commitb1778b44ef9fab09c4b3b69b363501857ef88b05 (patch)
treeb81e81821008bfb4c09e7c71a7aefa933aa1c6e6 /src
parent1573d06ec4e92a080dc1c40c26ca1d95ecdc7b2b (diff)
downloadslibtool-b1778b44ef9fab09c4b3b69b363501857ef88b05.tar.bz2
slibtool-b1778b44ef9fab09c4b3b69b363501857ef88b05.tar.xz
link mode: darwin support: do not pass -soname to the linker.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 0274841..63dd3c6 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -622,7 +622,9 @@ static int slbt_exec_link_create_library(
*ectx->noundef = "-Wl,--no-undefined";
/* -soname */
- if (!(dctx->cctx->drvflags & SLBT_DRIVER_AVOID_VERSION)) {
+ if ((dctx->cctx->drvflags & SLBT_DRIVER_IMAGE_MACHO)) {
+ (void)0;
+ } else if (!(dctx->cctx->drvflags & SLBT_DRIVER_AVOID_VERSION)) {
if ((size_t)snprintf(soname,sizeof(soname),"-Wl,%s%s%s.%d",
dctx->cctx->settings.dsoprefix,
dctx->cctx->libname,