summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 21:04:53 -0400
committermidipix <writeonce@midipix.org>2016-04-20 21:04:53 -0400
commitf7645c9729a4776529a40bef24a11e3bcd921508 (patch)
treec58fb8c78a0848afe5cf652f4770316cbfe0f6bf /src
parent8b1ca1a880b528bd473535aac6bb0135cdcd5324 (diff)
downloadslibtool-f7645c9729a4776529a40bef24a11e3bcd921508.tar.bz2
slibtool-f7645c9729a4776529a40bef24a11e3bcd921508.tar.xz
driver: added -all-static support.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c4
-rw-r--r--src/internal/slibtool_driver_impl.h1
-rw-r--r--src/skin/slbt_skin_default.c6
3 files changed, 11 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 97248c8..8caa5cb 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -807,6 +807,10 @@ int slbt_get_driver_ctx(
cctx.drvflags |= SLBT_DRIVER_MODULE;
break;
+ case TAG_ALL_STATIC:
+ cctx.drvflags |= SLBT_DRIVER_ALL_STATIC;
+ break;
+
case TAG_AVOID_VERSION:
cctx.drvflags |= SLBT_DRIVER_AVOID_VERSION;
break;
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index b7a089f..9e0872f 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -45,6 +45,7 @@ enum app_tags {
TAG_PREFER_NON_PIC,
TAG_SHARED,
TAG_STATIC,
+ TAG_ALL_STATIC,
TAG_NO_UNDEFINED,
TAG_MODULE,
TAG_AVOID_VERSION,
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index 3d2d78f..a9fffa7 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -114,6 +114,12 @@ const struct argv_option slbt_default_options[] = {
"object name need not follow the platform's "
"library naming conventions"},
+ {"all-static", 0,TAG_ALL_STATIC,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "for programs, create a zero-dependency, "
+ "statically linked binary; for libraries, "
+ "only create an archive of non-pic objects"},
+
{"avoid-version", 0,TAG_AVOID_VERSION,ARGV_OPTARG_NONE,
ARGV_OPTION_HYBRID_ONLY,0,0,
"do not store version information, "