0e609b
driver: added -disable-static support [no-op].
@@ -58,6 +58,7 @@ extern "C" {
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
+
|
61
62
|
|
62
63
|
/* execution modes */
|
63
64
|
enum slbt_mode {
|
@@ -702,6 +702,9 @@ int slbt_get_driver_ctx(
|
|
702
702
|
|
703
703
|
else if (!strcmp("NASM",entry->arg))
|
704
704
|
cctx.tag = SLBT_TAG_NASM;
|
705
|
+
|
706
|
+
else if (!strcmp("disable-static",entry->arg))
|
707
|
+
cctx.drvflags |= SLBT_DRIVER_DISABLE_STATIC;
|
705
708
|
break;
|
706
709
|
|
707
710
|
case TAG_CONFIG:
|
@@ -811,6 +814,10 @@ int slbt_get_driver_ctx(
|
|
811
814
|
cctx.drvflags |= SLBT_DRIVER_ALL_STATIC;
|
812
815
|
break;
|
813
816
|
|
817
|
+
case TAG_DISABLE_STATIC:
|
818
|
+
cctx.drvflags |= SLBT_DRIVER_DISABLE_STATIC;
|
819
|
+
break;
|
820
|
+
|
814
821
|
case TAG_AVOID_VERSION:
|
815
822
|
cctx.drvflags |= SLBT_DRIVER_AVOID_VERSION;
|
816
823
|
break;
|
@@ -46,6 +46,7 @@ enum app_tags {
|
|
46
46
|
TAG_SHARED,
|
47
47
|
TAG_STATIC,
|
48
48
|
TAG_ALL_STATIC,
|
49
|
+
TAG_DISABLE_STATIC,
|
49
50
|
TAG_NO_UNDEFINED,
|
50
51
|
TAG_MODULE,
|
51
52
|
TAG_AVOID_VERSION,
|
@@ -21,7 +21,7 @@ const struct argv_option slbt_default_options[] = {
|
|
21
21
|
"do not make any changes to the file system"},
|
22
22
|
|
23
23
|
{"tag", 0,TAG_TAG,ARGV_OPTARG_REQUIRED,0,
|
24
|
-
"CC|CXX|NASM",0,
|
24
|
+
"CC|CXX|NASM|disable-static",0,
|
25
25
|
"a universal playground game"},
|
26
26
|
|
27
27
|
{"config", 0,TAG_CONFIG,ARGV_OPTARG_NONE,0,0,0,
|
@@ -120,6 +120,13 @@ const struct argv_option slbt_default_options[] = {
|
|
120
120
|
"statically linked binary; for libraries, "
|
121
121
|
"only create an archive of non-pic objects"},
|
122
122
|
|
123
|
+
{"disable-static", 0,TAG_DISABLE_STATIC,ARGV_OPTARG_NONE,
|
124
|
+
ARGV_OPTION_HYBRID_ONLY,0,0,
|
125
|
+
"for libraries, only create a shared library, "
|
126
|
+
"and accordingly do not create an archive "
|
127
|
+
"containing the individual object files. "
|
128
|
+
"[currently a no-op]"},
|
129
|
+
|
123
130
|
{"avoid-version", 0,TAG_AVOID_VERSION,ARGV_OPTARG_NONE,
|
124
131
|
ARGV_OPTION_HYBRID_ONLY,0,0,
|
125
132
|
"do not store version information, "
|