From: Arran Cudbard-Bell Date: Thu, 5 May 2022 09:26:34 +0000 (+0200) Subject: If the target is empty or set to "default" just use the host target X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d151d4a3a5426f563d066ae893e09b9e3e1b171b;p=thirdparty%2Ffreeradius-server.git If the target is empty or set to "default" just use the host target This makes it a little easier in the build framework --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index 279d9a57993..f6524826700 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -1016,6 +1016,8 @@ static int parse_long_opt(char const *arg, command_t *cmd) target_map_t const *p; target_map_t const *end; + if (!strlen(value) || (strcmp(value, "default") == 0)) return 1; + for (p = target_map, end = target_map + (sizeof(target_map) / sizeof(*target_map)); p < end; p++) { @@ -1056,7 +1058,6 @@ static int parse_long_opt(char const *arg, command_t *cmd) } exit(1); } - } else if (strcmp(var, "mode") == 0) { if (cmd->mode != MODE_UNKNOWN) { ERROR("Cannot set --mode twice\n");