summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-05-09 02:59:23 (GMT)
committermidipix <writeonce@midipix.org>2018-05-09 02:59:23 (GMT)
commitf5983e8071d8b87b6f14c64f3f8564e934f49d7b (patch)
tree68365ffe7f68f977e985d5cab19c0f3352db2ac6
parente62ede6683574d4ad1256eda175fd93f55d30839 (diff)
downloadslibtool-f5983e8071.tar.bz2
slibtool-f5983e8071.tar.xz
link mode: pass --export-dynamic to the linker as needed.
-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;
}