From b1778b44ef9fab09c4b3b69b363501857ef88b05 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 26 Apr 2016 12:15:08 -0400 Subject: link mode: darwin support: do not pass -soname to the linker. --- src/logic/slbt_exec_link.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3