From: Alan T. DeKok Date: Mon, 6 Feb 2012 14:30:49 +0000 (+0100) Subject: Sync with upstream X-Git-Tag: release_3_0_0_beta0~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79e007aaf353dca3137241c1481b71f01efe4b7d;p=thirdparty%2Ffreeradius-server.git Sync with upstream --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index 321ca42c09d..a17a8d65d16 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -1784,6 +1784,17 @@ static void parse_args(int argc, char *argv[], command_t *cmd_data) break; } + /* + * Stop if we get another magic method + */ + if ((a == 1) && + ((strncmp(arg, "LINK", 4) == 0) || + (strcmp(arg, "CC") == 0) || + (strcmp(argv, "CXX") == 0))) { + base = NULL; + break; + } + if (strncmp(arg, "-o", 2) == 0) { base = argv[++a]; } @@ -2012,8 +2023,7 @@ static void link_fixup(command_t *c) else { char *tmp; push_count_chars(c->shared_opts.normal, c->shared_name.normal); -#if 0 - /* really #ifdef DYNAMIC_INSTALL_NAME */ +#ifdef DYNAMIC_INSTALL_NAME push_count_chars(c->shared_opts.normal, DYNAMIC_INSTALL_NAME); tmp = (char*)malloc(PATH_MAX);