From faba91bc57977ddb5074f4549aabefd5897d670e Mon Sep 17 00:00:00 2001 From: rillig Date: Sun, 14 Jan 2007 18:56:25 +0000 Subject: Options to subprocesses like the assember must pass the transformations. They are _not_ GCC warnings, although they start with -W. --- mk/wrapper/transform-sunpro-cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mk/wrapper/transform-sunpro-cc b/mk/wrapper/transform-sunpro-cc index ed1921f6d5c..235acd0d5d3 100644 --- a/mk/wrapper/transform-sunpro-cc +++ b/mk/wrapper/transform-sunpro-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-sunpro-cc,v 1.21 2006/12/18 00:21:31 rillig Exp $ +# $NetBSD: transform-sunpro-cc,v 1.22 2007/01/14 18:56:25 rillig Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -66,16 +66,13 @@ case $arg in -Wl,--export-dynamic |\ -Wl,-E ) transform_discard ;; -# Let the options to the linker pass unmodified. --Wl,* ) transform_pass ;; +-W[02aclmop],* ) transform_pass ;; # Ignore options that are probably meant for GCC. -W* ) transform_discard_with_warning ;; -# Solaris' linker uses -Bstatic to create static objects. -static ) transform_to "-Bstatic" ;; -# Solaris' linker uses -G to create shared objects. --export-dynamic |\ -shared ) transform_to "-G" ;; -- cgit v1.2.3