diff options
author | midipix <writeonce@midipix.org> | 2017-08-11 04:40:52 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-08-11 04:40:52 -0400 |
commit | 2c2879478f52ed9aa633d35df2488fb00878e9b7 (patch) | |
tree | 7c425f80a487402dd0442653bf636479e50e67e2 /src | |
parent | 20ff20dd8ed591059ada51e9bd8ecc154a2d270e (diff) | |
download | slibtool-2c2879478f52ed9aa633d35df2488fb00878e9b7.tar.bz2 slibtool-2c2879478f52ed9aa633d35df2488fb00878e9b7.tar.xz |
link mode: use -fpic objects with -disable-static.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_link.c | 3 |
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; |