From a715306378dc1558b6b979c8ff133b1f614aa141 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 30 Apr 2016 12:25:47 -0400 Subject: link mode: wrapper: -module support: do not prepend 'lib' prefix to 'dlname'. --- src/logic/slbt_exec_link.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/logic') 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); -- cgit v1.2.3