summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-22 21:51:42 -0400
committermidipix <writeonce@midipix.org>2016-04-23 09:25:25 -0400
commitf782a15878f72d95ddf5f8dfd0c56e185442fcc8 (patch)
tree695d6e9520f7aea2244848c7d6b2c7f50a32c46f /src
parent2da3b0fad5a2432bb259131cf72a48eb14f8ec9c (diff)
downloadslibtool-f782a15878f72d95ddf5f8dfd0c56e185442fcc8.tar.bz2
slibtool-f782a15878f72d95ddf5f8dfd0c56e185442fcc8.tar.xz
link mode: respect -disable-shared.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c3
-rw-r--r--src/skin/slbt_skin_default.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 267e292..31c4501 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -904,6 +904,9 @@ int slbt_exec_link(
if (dctx->cctx->drvflags & SLBT_DRIVER_ALL_STATIC) {
fstaticonly = true;
fpic = false;
+ } else if (dctx->cctx->drvflags & SLBT_DRIVER_DISABLE_SHARED) {
+ fstaticonly = true;
+ fpic = false;
} else if (dctx->cctx->drvflags & SLBT_DRIVER_SHARED) {
fstaticonly = false;
fpic = true;
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index 2b74632..88c38dd 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -137,8 +137,7 @@ const struct argv_option slbt_default_options[] = {
ARGV_OPTION_HYBRID_ONLY,0,0,
"for libraries, only create an archive "
"containing the individual object files, and "
- "accordingly do not create a shared library. "
- "[currently a no-op]"},
+ "accordingly do not create a shared library"},
{"avoid-version", 0,TAG_AVOID_VERSION,ARGV_OPTARG_NONE,
ARGV_OPTION_HYBRID_ONLY,0,0,