summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-08-11 04:40:52 -0400
committermidipix <writeonce@midipix.org>2017-08-11 04:40:52 -0400
commit2c2879478f52ed9aa633d35df2488fb00878e9b7 (patch)
tree7c425f80a487402dd0442653bf636479e50e67e2
parent20ff20dd8ed591059ada51e9bd8ecc154a2d270e (diff)
downloadslibtool-2c2879478f52ed9aa633d35df2488fb00878e9b7.tar.bz2
slibtool-2c2879478f52ed9aa633d35df2488fb00878e9b7.tar.xz
link mode: use -fpic objects with -disable-static.
-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 2f57a79..b47bbc1 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -1481,6 +1481,9 @@ int slbt_exec_link(
} else if (dctx->cctx->drvflags & SLBT_DRIVER_DISABLE_SHARED) {
fstaticonly = true;
fpic = false;
+ } else if (dctx->cctx->drvflags & SLBT_DRIVER_DISABLE_STATIC) {
+ fstaticonly = false;
+ fpic = true;
} else if (dctx->cctx->drvflags & SLBT_DRIVER_SHARED) {
fstaticonly = false;
fpic = true;