summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-05-08 22:59:23 -0400
committermidipix <writeonce@midipix.org>2018-05-08 22:59:23 -0400
commitf5983e8071d8b87b6f14c64f3f8564e934f49d7b (patch)
tree68365ffe7f68f977e985d5cab19c0f3352db2ac6 /src/logic
parente62ede6683574d4ad1256eda175fd93f55d30839 (diff)
downloadslibtool-f5983e8071d8b87b6f14c64f3f8564e934f49d7b.tar.bz2
slibtool-f5983e8071d8b87b6f14c64f3f8564e934f49d7b.tar.xz
link mode: pass --export-dynamic to the linker as needed.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_link.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 9839622..542448c 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -481,6 +481,9 @@ static int slbt_exec_link_adjust_argument_vector(
}
}
+ if (dctx->cctx->drvflags & SLBT_DRIVER_EXPORT_DYNAMIC)
+ *aarg++ = "-Wl,--export-dynamic";
+
return 0;
}