Print this page
8411 Build should warn when linking against libraries outside proto area
*** 19,28 ****
--- 19,29 ----
* 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,44 ****
* 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"
/*
* -# Verbose mode
* -### Show compiler commands built by driver, no compilation
* -A<name[(tokens)]> Preprocessor predicate assertion
--- 35,45 ----
* 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.31"
/*
* -# Verbose mode
* -### Show compiler commands built by driver, no compilation
* -A<name[(tokens)]> Preprocessor predicate assertion
*** 1392,1401 ****
--- 1393,1410 ----
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);