From a715306378dc1558b6b979c8ff133b1f614aa141 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 30 2016 19:43:22 +0000 Subject: link mode: wrapper: -module support: do not prepend 'lib' prefix to 'dlname'. --- diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 0c188a7..1b3c998 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -1019,7 +1019,9 @@ int slbt_exec_link( /* libfoo.so */ sprintf(solnk,"%s%s%s", - dctx->cctx->settings.dsoprefix, + (dctx->cctx->drvflags & SLBT_DRIVER_MODULE) + ? "" + : dctx->cctx->settings.dsoprefix, dctx->cctx->libname, dctx->cctx->settings.dsosuffix);