From b1778b44ef9fab09c4b3b69b363501857ef88b05 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 26 2016 16:15:08 +0000 Subject: link mode: darwin support: do not pass -soname to the linker. --- 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,