head	1.2;
access;
symbols
	pkgsrc-2026Q1:1.2.0.174
	pkgsrc-2026Q1-base:1.2
	pkgsrc-2025Q4:1.2.0.172
	pkgsrc-2025Q4-base:1.2
	pkgsrc-2025Q3:1.2.0.170
	pkgsrc-2025Q3-base:1.2
	pkgsrc-2025Q2:1.2.0.168
	pkgsrc-2025Q2-base:1.2
	pkgsrc-2025Q1:1.2.0.166
	pkgsrc-2025Q1-base:1.2
	pkgsrc-2024Q4:1.2.0.164
	pkgsrc-2024Q4-base:1.2
	pkgsrc-2024Q3:1.2.0.162
	pkgsrc-2024Q3-base:1.2
	pkgsrc-2024Q2:1.2.0.160
	pkgsrc-2024Q2-base:1.2
	pkgsrc-2024Q1:1.2.0.158
	pkgsrc-2024Q1-base:1.2
	pkgsrc-2023Q4:1.2.0.156
	pkgsrc-2023Q4-base:1.2
	pkgsrc-2023Q3:1.2.0.154
	pkgsrc-2023Q3-base:1.2
	pkgsrc-2023Q2:1.2.0.152
	pkgsrc-2023Q2-base:1.2
	pkgsrc-2023Q1:1.2.0.150
	pkgsrc-2023Q1-base:1.2
	pkgsrc-2022Q4:1.2.0.148
	pkgsrc-2022Q4-base:1.2
	pkgsrc-2022Q3:1.2.0.146
	pkgsrc-2022Q3-base:1.2
	pkgsrc-2022Q2:1.2.0.144
	pkgsrc-2022Q2-base:1.2
	pkgsrc-2022Q1:1.2.0.142
	pkgsrc-2022Q1-base:1.2
	pkgsrc-2021Q4:1.2.0.140
	pkgsrc-2021Q4-base:1.2
	pkgsrc-2021Q3:1.2.0.138
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.136
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.2.0.134
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.132
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.130
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.126
	pkgsrc-2020Q2-base:1.2
	pkgsrc-2020Q1:1.2.0.106
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.128
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.124
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.122
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.120
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.118
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.116
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.2.0.114
	pkgsrc-2018Q2-base:1.2
	pkgsrc-2018Q1:1.2.0.112
	pkgsrc-2018Q1-base:1.2
	pkgsrc-2017Q4:1.2.0.110
	pkgsrc-2017Q4-base:1.2
	pkgsrc-2017Q3:1.2.0.108
	pkgsrc-2017Q3-base:1.2
	pkgsrc-2017Q2:1.2.0.104
	pkgsrc-2017Q2-base:1.2
	pkgsrc-2017Q1:1.2.0.102
	pkgsrc-2017Q1-base:1.2
	pkgsrc-2016Q4:1.2.0.100
	pkgsrc-2016Q4-base:1.2
	pkgsrc-2016Q3:1.2.0.98
	pkgsrc-2016Q3-base:1.2
	pkgsrc-2016Q2:1.2.0.96
	pkgsrc-2016Q2-base:1.2
	pkgsrc-2016Q1:1.2.0.94
	pkgsrc-2016Q1-base:1.2
	pkgsrc-2015Q4:1.2.0.92
	pkgsrc-2015Q4-base:1.2
	pkgsrc-2015Q3:1.2.0.90
	pkgsrc-2015Q3-base:1.2
	pkgsrc-2015Q2:1.2.0.88
	pkgsrc-2015Q2-base:1.2
	pkgsrc-2015Q1:1.2.0.86
	pkgsrc-2015Q1-base:1.2
	pkgsrc-2014Q4:1.2.0.84
	pkgsrc-2014Q4-base:1.2
	pkgsrc-2014Q3:1.2.0.82
	pkgsrc-2014Q3-base:1.2
	pkgsrc-2014Q2:1.2.0.80
	pkgsrc-2014Q2-base:1.2
	pkgsrc-2014Q1:1.2.0.78
	pkgsrc-2014Q1-base:1.2
	pkgsrc-2013Q4:1.2.0.76
	pkgsrc-2013Q4-base:1.2
	pkgsrc-2013Q3:1.2.0.74
	pkgsrc-2013Q3-base:1.2
	pkgsrc-2013Q2:1.2.0.72
	pkgsrc-2013Q2-base:1.2
	pkgsrc-2013Q1:1.2.0.70
	pkgsrc-2013Q1-base:1.2
	pkgsrc-2012Q4:1.2.0.68
	pkgsrc-2012Q4-base:1.2
	pkgsrc-2012Q3:1.2.0.66
	pkgsrc-2012Q3-base:1.2
	pkgsrc-2012Q2:1.2.0.64
	pkgsrc-2012Q2-base:1.2
	pkgsrc-2012Q1:1.2.0.62
	pkgsrc-2012Q1-base:1.2
	pkgsrc-2011Q4:1.2.0.60
	pkgsrc-2011Q4-base:1.2
	pkgsrc-2011Q3:1.2.0.58
	pkgsrc-2011Q3-base:1.2
	pkgsrc-2011Q2:1.2.0.56
	pkgsrc-2011Q2-base:1.2
	pkgsrc-2011Q1:1.2.0.54
	pkgsrc-2011Q1-base:1.2
	pkgsrc-2010Q4:1.2.0.52
	pkgsrc-2010Q4-base:1.2
	pkgsrc-2010Q3:1.2.0.50
	pkgsrc-2010Q3-base:1.2
	pkgsrc-2010Q2:1.2.0.48
	pkgsrc-2010Q2-base:1.2
	pkgsrc-2010Q1:1.2.0.46
	pkgsrc-2010Q1-base:1.2
	pkgsrc-2009Q4:1.2.0.44
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2009Q3:1.2.0.42
	pkgsrc-2009Q3-base:1.2
	pkgsrc-2009Q2:1.2.0.40
	pkgsrc-2009Q2-base:1.2
	pkgsrc-2009Q1:1.2.0.38
	pkgsrc-2009Q1-base:1.2
	pkgsrc-2008Q4:1.2.0.36
	pkgsrc-2008Q4-base:1.2
	pkgsrc-2008Q3:1.2.0.34
	pkgsrc-2008Q3-base:1.2
	cube-native-xorg:1.2.0.32
	cube-native-xorg-base:1.2
	pkgsrc-2008Q2:1.2.0.30
	pkgsrc-2008Q2-base:1.2
	cwrapper:1.2.0.28
	pkgsrc-2008Q1:1.2.0.26
	pkgsrc-2008Q1-base:1.2
	pkgsrc-2007Q4:1.2.0.24
	pkgsrc-2007Q4-base:1.2
	pkgsrc-2007Q3:1.2.0.22
	pkgsrc-2007Q3-base:1.2
	pkgsrc-2007Q2:1.2.0.20
	pkgsrc-2007Q2-base:1.2
	pkgsrc-2007Q1:1.2.0.18
	pkgsrc-2007Q1-base:1.2
	jlam-pkgviews:1.2.0.16
	jlam-pkgviews-base:1.2
	pkgsrc-2006Q4:1.2.0.14
	pkgsrc-2006Q4-base:1.2
	pkgsrc-2006Q3:1.2.0.12
	pkgsrc-2006Q3-base:1.2
	pkgsrc-2006Q2:1.2.0.10
	pkgsrc-2006Q2-base:1.2
	pkgsrc-2006Q1:1.2.0.8
	pkgsrc-2006Q1-base:1.2
	pkgsrc-2005Q4:1.2.0.6
	pkgsrc-2005Q4-base:1.2
	pkgsrc-2005Q3:1.2.0.4
	pkgsrc-2005Q3-base:1.2
	pkgsrc-2005Q2:1.2.0.2;
locks; strict;
comment	@# @;


1.2
date	2005.08.21.02.39.52;	author grant;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2005.08.20.14.37.53;	author grant;	state Exp;
branches;
next	;

1.2.2.1
date	2005.08.21.02.39.52;	author salo;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2005.08.24.09.11.11;	author salo;	state Exp;
branches;
next	;


desc
@@


1.2
log
@preserve -Qoption arg if the 2nd next arg isn't -R.
@
text
@# $NetBSD: arg-pp-sunpro-cxx,v 1.1 2005/08/20 14:37:53 grant 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
-Qoption)
	argmatch=no
	pop_queue argbuf nextarg1
	$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pop:  $nextarg1"
	case $nextarg1 in
	ld)
		argmatch=yes
		pop_queue argbuf nextarg2
		$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pop:  $nextarg2"
		case $nextarg2 in
		-R*)
			$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pre:  $nextarg2"
			prepend_queue argbuf $nextarg2
			;;
		*)
			argok=yes
			$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pre:  $nextarg2"
			prepend_queue argbuf $nextarg2
			$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pre:  $nextarg1"
			prepend_queue argbuf $nextarg1
			;;
		esac
		;;
	esac
	;;
esac
@


1.2.2.1
log
@file arg-pp-sunpro-cxx was added on branch pkgsrc-2005Q2 on 2005-08-21 02:39:52 +0000
@
text
@d1 59
@


1.2.2.2
log
@Pullup ticket 709 - requested by Grant Beattie
portability fixes for compiler wrapper

Revisions pulled up:
- pkgsrc/mk/wrapper/arg-pp-sunpro-cxx		1.1, 1.2
- pkgsrc/mk/wrapper/bsd.wrapper.mk		1.36, 1.37
- pkgsrc/mk/wrapper/transform-sunpro-cc		1.9

   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Tue Jul 26 07:36:54 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: bsd.wrapper.mk

   Log Message:
   icc 9.0 wants the same options as 8.1.
---
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sat Aug 20 02:11:15 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: transform-sunpro-cc

   Log Message:
   add -xnolibmopt after -fast to disable the use of libsunmath (until it
   can be sanely statically linked).
--
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sat Aug 20 14:37:53 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: bsd.wrapper.mk
   Added Files:
   	pkgsrc/mk/wrapper: arg-pp-sunpro-cxx

   Log Message:
   strip leading "-Qoption ld" from -R args for sunpro C++ compiler, to
   avoid duplicate "-Qoption ld" args when the -R args is later stripped.

   thanks to jlam@@ for the hint.
---
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sun Aug 21 02:39:52 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: arg-pp-sunpro-cxx

   Log Message:
   preserve -Qoption arg if the 2nd next arg isn't -R.
@
text
@a0 59
# $NetBSD: arg-pp-sunpro-cxx,v 1.2.2.1 2005/08/24 09:11:11 salo 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
-Qoption)
	argmatch=no
	pop_queue argbuf nextarg1
	$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pop:  $nextarg1"
	case $nextarg1 in
	ld)
		argmatch=yes
		pop_queue argbuf nextarg2
		$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pop:  $nextarg2"
		case $nextarg2 in
		-R*)
			$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pre:  $nextarg2"
			prepend_queue argbuf $nextarg2
			;;
		*)
			argok=yes
			$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pre:  $nextarg2"
			prepend_queue argbuf $nextarg2
			$debug_log $wrapperlog "    (arg-pp-sunpro-cxx) pre:  $nextarg1"
			prepend_queue argbuf $nextarg1
			;;
		esac
		;;
	esac
	;;
esac
@


1.1
log
@strip leading "-Qoption ld" from -R args for sunpro C++ compiler, to
avoid duplicate "-Qoption ld" args when the -R args is later stripped.

thanks to jlam@@ for the hint.
@
text
@d1 1
a1 1
# $NetBSD$
d49 1
@
