]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Sync with upstream
authorAlan T. DeKok <aland@freeradius.org>
Mon, 6 Feb 2012 14:30:49 +0000 (15:30 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 6 Feb 2012 14:30:49 +0000 (15:30 +0100)
scripts/jlibtool.c

index 321ca42c09dc029b0dd67e81ea79fbfcb74985ef..a17a8d65d164005ef2bcd21c2bc0743d708898e9 100644 (file)
@@ -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);