summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-06 22:21:51 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:09 -0500
commit116dbb9f65f5fe7d30801b00ef8b81710e2041a4 (patch)
tree5856112a7a37653c90744487f905b588d7d56134
parent25956b76b3b85d88987710d589babc9029f5103d (diff)
downloadslibtool-116dbb9f65f5fe7d30801b00ef8b81710e2041a4.tar.bz2
slibtool-116dbb9f65f5fe7d30801b00ef8b81710e2041a4.tar.xz
driver: added option table records for --mode=compile.
-rw-r--r--src/internal/slibtool_driver_impl.h8
-rw-r--r--src/skin/slbt_skin_default.c34
2 files changed, 42 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index ff54526..7160c4c 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -25,6 +25,14 @@ enum app_tags {
TAG_SILENT,
TAG_TAG,
TAG_VERBOSE,
+ TAG_OUTPUT,
+ TAG_NO_SUPPRESS,
+ TAG_PREFER_PIC,
+ TAG_PREFER_NON_PIC,
+ TAG_SHARED,
+ TAG_STATIC,
+ TAG_COMPILER_FLAG,
+ TAG_VERBATIM_FLAG,
};
struct slbt_driver_ctx_impl {
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index 5e94612..cec03db 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -57,5 +57,39 @@ const struct argv_option slbt_default_options[] = {
"all|none|error","",
"convenient shorthands for the above"},
+ {"output", 'o',TAG_OUTPUT,ARGV_OPTARG_REQUIRED,0,0,"<file>",
+ "write output to %s"},
+
+ {"no-suppress", 0,TAG_NO_SUPPRESS,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "transparently forward all "
+ "compiler-generated output"},
+
+ {"prefer-pic", 0,TAG_PREFER_PIC,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "pick on non-PIC objects"},
+
+ {"prefer-non-pic", 0,TAG_PREFER_NON_PIC,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "pick on PIC objects"},
+
+ {"shared", 0,TAG_SHARED,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "only build .libs/srcfile.o"},
+
+ {"static", 0,TAG_STATIC,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "only build ./srcfile.o"},
+
+ {"Wc", 0,TAG_COMPILER_FLAG,ARGV_OPTARG_REQUIRED,
+ ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_COMMA,
+ 0,"<flag>[,<flag]...",
+ "pass comma-separated flags to the compiler"},
+
+ {"Xcompiler", 0,TAG_VERBATIM_FLAG,ARGV_OPTARG_REQUIRED,
+ ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_SPACE,
+ 0,"<flag>",
+ "pass a raw flag to the compiler"},
+
{0,0,0,0,0,0,0,0}
};