summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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}
};