diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-26 13:02:53 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-26 13:02:53 +0000 |
commit | 1bffa7c9992687471a93e6b94b86ef2a0b73131b (patch) | |
tree | 26be5f56cf775cdb1be217b2212fca06cf820d11 /mk/wrapper | |
parent | 6a7a034b39ea870b5d59fe4953cdcc95a8b6925b (diff) | |
download | pkgsrc-1bffa7c9992687471a93e6b94b86ef2a0b73131b.tar.gz |
Merged the transformations from the Solaris-specific gcc part into the
generic one. That way, the unknown options are reported properly on all
platforms.
Diffstat (limited to 'mk/wrapper')
-rw-r--r-- | mk/wrapper/bsd.wrapper.mk | 7 | ||||
-rw-r--r-- | mk/wrapper/transform-gcc | 12 | ||||
-rw-r--r-- | mk/wrapper/transform-solaris-gcc | 47 |
3 files changed, 12 insertions, 54 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk index e7848103d82..2bd028f115d 100644 --- a/mk/wrapper/bsd.wrapper.mk +++ b/mk/wrapper/bsd.wrapper.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.wrapper.mk,v 1.58 2006/11/26 09:56:46 rillig Exp $ +# $NetBSD: bsd.wrapper.mk,v 1.59 2006/11/26 13:02:53 rillig Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -332,10 +332,6 @@ _WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} .endif .if ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc) -_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-solaris-gcc -_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-solaris-gcc -_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC} -_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC} _WRAP_CMD_SINK.IMAKE= ${WRAPPER_TMPDIR}/cmd-sink-solaris-imake _WRAP_CACHE_BODY.IMAKE= ${WRAPPER_TMPDIR}/cache-body-solaris-imake .endif @@ -488,7 +484,6 @@ generate-wrappers: ${_target_} transform-ido-cc \ transform-mipspro-cc \ transform-mipspro-ucode-cc \ - transform-solaris-gcc \ transform-sunpro-cc \ transform-xlc-cc \ wrapper-subr.sh diff --git a/mk/wrapper/transform-gcc b/mk/wrapper/transform-gcc index b8bd79f6e2e..e30397916fb 100644 --- a/mk/wrapper/transform-gcc +++ b/mk/wrapper/transform-gcc @@ -1,4 +1,4 @@ -# $NetBSD: transform-gcc,v 1.2 2006/11/26 10:00:04 rillig Exp $ +# $NetBSD: transform-gcc,v 1.3 2006/11/26 13:02:53 rillig Exp $ # # This file prints warning messages for all obscure gcc options into the # wrapper log file. @@ -6,6 +6,16 @@ transform_setname "transform-gcc" case $arg in + +-KPIC|\ +-kPIC) + # Needed for the Solaris imake. + transform_to "-fPIC" ;; + +-mt) + # Needed on Solaris with SunPro. + transform_to "-threads" ;; + -c|\ -D?*|\ -I?*|\ diff --git a/mk/wrapper/transform-solaris-gcc b/mk/wrapper/transform-solaris-gcc deleted file mode 100644 index 0361276bc86..00000000000 --- a/mk/wrapper/transform-solaris-gcc +++ /dev/null @@ -1,47 +0,0 @@ -# $NetBSD: transform-solaris-gcc,v 1.4 2006/09/17 18:46:00 rillig Exp $ -# -# Copyright (c) 2005 The NetBSD Foundation, Inc. -# All rights reserved. -# -# This code is derived from software contributed to The NetBSD Foundation -# by Grant Beattie. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. Neither the name of The NetBSD Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -case $arg in -# the imake config templates on Solaris 8 pass -Kpic to build PIC, even -# when -DHasGcc2=YES -DHasGcc2ForCplusplus=YES is passed, so transform -# -Kpic to -fPIC. --Kpic|-KPIC) - arg=-fPIC - $debug_log $wrapperlog " (transform-solaris-gcc) to: $arg" - addtocache=yes - ;; --mt) # (from SunPro) - arg=-threads - $debug_log $wrapperlog " (transform-solaris-gcc) to: $arg" - addtocache=yes - ;; -esac |