Print this page
8411 Build should warn when linking against libraries outside proto area

@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 
 /*
  * Copyright 2011, Richard Lowe.
+ * Copyright 2017 RackTop Systems.
  */
 /*
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */

@@ -34,11 +35,11 @@
  * Since the translation is inexact, this is something of a work-in-progress.
  *
  */
 
 /* If you modify this file, you must increment CW_VERSION */
-#define CW_VERSION      "1.30"
+#define CW_VERSION      "1.31"
 
 /*
  * -#           Verbose mode
  * -###         Show compiler commands built by driver, no compilation
  * -A<name[(tokens)]>   Preprocessor predicate assertion

@@ -1392,10 +1393,18 @@
                                 arg += 2;
                         }
                         /* Just ignore -YS,... for now */
                         if (strncmp(arg, "S,", 2) == 0)
                                 break;
+                        /* Reformat -YP or GCC will moan */
+                        if (strncmp(arg, "P,", 2) == 0) {
+                                char *s;
+                                (void) asprintf(&s, "-Y%s", arg);
+                                newae(ctx->i_ae, s);
+                                free(s);
+                                break;
+                        }
                         if (strncmp(arg, "l,", 2) == 0) {
                                 char *s = strdup(arg);
                                 s[0] = '-';
                                 s[1] = 'B';
                                 newae(ctx->i_ae, s);