diff options
author | midipix <writeonce@midipix.org> | 2019-06-12 04:17:29 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-06-12 04:17:29 +0000 |
commit | 0d693ebc97d098589fc4ae78ecba9a4b082bca1e (patch) | |
tree | 1ea2bb26fff9274f5cb658907980067276dcb87b /src | |
parent | 35803045ff749222ab31e3c3312b5c5a3994c412 (diff) | |
download | slibtool-0d693ebc97d098589fc4ae78ecba9a4b082bca1e.tar.bz2 slibtool-0d693ebc97d098589fc4ae78ecba9a4b082bca1e.tar.xz |
driver: added -XCClinker support.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 3 | ||||
-rw-r--r-- | src/skin/slbt_skin_default.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 098ff48..f5e7ef2 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -503,6 +503,9 @@ static int slbt_split_argv( } else if (!(strcmp("Xcompiler",&argv[i][1]))) { *cargv++ = argv[++i]; + } else if (!(strcmp("XCClinker",&argv[i][1]))) { + *cargv++ = argv[++i]; + } else if ((argv[i][1] == 'R') && (argv[i][2] == 0)) { *targv++ = argv[i++]; *targv++ = argv[i]; diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c index 334c69a..c7a51c1 100644 --- a/src/skin/slbt_skin_default.c +++ b/src/skin/slbt_skin_default.c @@ -276,6 +276,11 @@ const struct argv_option slbt_default_options[] = { 0,"<flag>", "pass a raw flag to the compiler"}, + {"XCClinker", 0,TAG_VERBATIM_FLAG,ARGV_OPTARG_REQUIRED, + ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_SPACE, + 0,"<flag>", + "pass a raw flag to the compiler linker-driver"}, + {"no-undefined", 0,TAG_NO_UNDEFINED,ARGV_OPTARG_NONE, ARGV_OPTION_HYBRID_ONLY,0,0, "disallow unresolved references"}, |