head 1.10; access; symbols pkgsrc-2023Q4:1.10.0.44 pkgsrc-2023Q4-base:1.10 pkgsrc-2023Q3:1.10.0.42 pkgsrc-2023Q3-base:1.10 pkgsrc-2023Q2:1.10.0.40 pkgsrc-2023Q2-base:1.10 pkgsrc-2023Q1:1.10.0.38 pkgsrc-2023Q1-base:1.10 pkgsrc-2022Q4:1.10.0.36 pkgsrc-2022Q4-base:1.10 pkgsrc-2022Q3:1.10.0.34 pkgsrc-2022Q3-base:1.10 pkgsrc-2022Q2:1.10.0.32 pkgsrc-2022Q2-base:1.10 pkgsrc-2022Q1:1.10.0.30 pkgsrc-2022Q1-base:1.10 pkgsrc-2021Q4:1.10.0.28 pkgsrc-2021Q4-base:1.10 pkgsrc-2021Q3:1.10.0.26 pkgsrc-2021Q3-base:1.10 pkgsrc-2021Q2:1.10.0.24 pkgsrc-2021Q2-base:1.10 pkgsrc-2021Q1:1.10.0.22 pkgsrc-2021Q1-base:1.10 pkgsrc-2020Q4:1.10.0.20 pkgsrc-2020Q4-base:1.10 pkgsrc-2020Q3:1.10.0.18 pkgsrc-2020Q3-base:1.10 pkgsrc-2020Q2:1.10.0.16 pkgsrc-2020Q2-base:1.10 pkgsrc-2020Q1:1.10.0.12 pkgsrc-2020Q1-base:1.10 pkgsrc-2019Q4:1.10.0.14 pkgsrc-2019Q4-base:1.10 pkgsrc-2019Q3:1.10.0.10 pkgsrc-2019Q3-base:1.10 pkgsrc-2019Q2:1.10.0.8 pkgsrc-2019Q2-base:1.10 pkgsrc-2019Q1:1.10.0.6 pkgsrc-2019Q1-base:1.10 pkgsrc-2018Q4:1.10.0.4 pkgsrc-2018Q4-base:1.10 pkgsrc-2018Q3:1.10.0.2 pkgsrc-2018Q3-base:1.10 pkgsrc-2018Q2:1.9.0.76 pkgsrc-2018Q2-base:1.9 pkgsrc-2018Q1:1.9.0.74 pkgsrc-2018Q1-base:1.9 pkgsrc-2017Q4:1.9.0.72 pkgsrc-2017Q4-base:1.9 pkgsrc-2017Q3:1.9.0.70 pkgsrc-2017Q3-base:1.9 pkgsrc-2017Q2:1.9.0.66 pkgsrc-2017Q2-base:1.9 pkgsrc-2017Q1:1.9.0.64 pkgsrc-2017Q1-base:1.9 pkgsrc-2016Q4:1.9.0.62 pkgsrc-2016Q4-base:1.9 pkgsrc-2016Q3:1.9.0.60 pkgsrc-2016Q3-base:1.9 pkgsrc-2016Q2:1.9.0.58 pkgsrc-2016Q2-base:1.9 pkgsrc-2016Q1:1.9.0.56 pkgsrc-2016Q1-base:1.9 pkgsrc-2015Q4:1.9.0.54 pkgsrc-2015Q4-base:1.9 pkgsrc-2015Q3:1.9.0.52 pkgsrc-2015Q3-base:1.9 pkgsrc-2015Q2:1.9.0.50 pkgsrc-2015Q2-base:1.9 pkgsrc-2015Q1:1.9.0.48 pkgsrc-2015Q1-base:1.9 pkgsrc-2014Q4:1.9.0.46 pkgsrc-2014Q4-base:1.9 pkgsrc-2014Q3:1.9.0.44 pkgsrc-2014Q3-base:1.9 pkgsrc-2014Q2:1.9.0.42 pkgsrc-2014Q2-base:1.9 pkgsrc-2014Q1:1.9.0.40 pkgsrc-2014Q1-base:1.9 pkgsrc-2013Q4:1.9.0.38 pkgsrc-2013Q4-base:1.9 pkgsrc-2013Q3:1.9.0.36 pkgsrc-2013Q3-base:1.9 pkgsrc-2013Q2:1.9.0.34 pkgsrc-2013Q2-base:1.9 pkgsrc-2013Q1:1.9.0.32 pkgsrc-2013Q1-base:1.9 pkgsrc-2012Q4:1.9.0.30 pkgsrc-2012Q4-base:1.9 pkgsrc-2012Q3:1.9.0.28 pkgsrc-2012Q3-base:1.9 pkgsrc-2012Q2:1.9.0.26 pkgsrc-2012Q2-base:1.9 pkgsrc-2012Q1:1.9.0.24 pkgsrc-2012Q1-base:1.9 pkgsrc-2011Q4:1.9.0.22 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q3:1.9.0.20 pkgsrc-2011Q3-base:1.9 pkgsrc-2011Q2:1.9.0.18 pkgsrc-2011Q2-base:1.9 pkgsrc-2011Q1:1.9.0.16 pkgsrc-2011Q1-base:1.9 pkgsrc-2010Q4:1.9.0.14 pkgsrc-2010Q4-base:1.9 pkgsrc-2010Q3:1.9.0.12 pkgsrc-2010Q3-base:1.9 pkgsrc-2010Q2:1.9.0.10 pkgsrc-2010Q2-base:1.9 pkgsrc-2010Q1:1.9.0.8 pkgsrc-2010Q1-base:1.9 pkgsrc-2009Q4:1.9.0.6 pkgsrc-2009Q4-base:1.9 pkgsrc-2009Q3:1.9.0.4 pkgsrc-2009Q3-base:1.9 pkgsrc-2009Q2:1.9.0.2 pkgsrc-2009Q2-base:1.9 pkgsrc-2009Q1:1.6.0.2 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.4.0.2 pkgsrc-2008Q4-base:1.4 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 tv-derecurse-eol:1.1.2.3 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 pkgsrc-2005Q2-base:1.2 tv-derecurse-merge:1.2 pkgsrc-2005Q1:1.1.0.4 pkgsrc-2005Q1-base:1.1 tv-derecurse-base:1.1 tv-derecurse:1.1.0.2; locks; strict; comment @# @; 1.10 date 2018.08.22.20.48.37; author maya; state Exp; branches; next 1.9; commitid FMEpDDTKwDQBR9PA; 1.9 date 2009.06.11.10.38.28; author sno; state Exp; branches; next 1.8; 1.8 date 2009.06.02.17.39.28; author sno; state Exp; branches; next 1.7; 1.7 date 2009.05.30.16.08.03; author sno; state Exp; branches; next 1.6; 1.6 date 2009.01.15.16.55.33; author joerg; state Exp; branches; next 1.5; 1.5 date 2009.01.09.11.46.34; author joerg; state Exp; branches; next 1.4; 1.4 date 2008.12.29.16.53.06; author joerg; state Exp; branches; next 1.3; 1.3 date 2008.11.14.14.04.12; author joerg; state Exp; branches; next 1.2; 1.2 date 2005.05.16.17.54.51; author jlam; state Exp; branches; next 1.1; 1.1 date 2005.02.19.04.19.59; author grant; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2005.02.19.04.19.59; author tv; state dead; branches; next 1.1.2.2; 1.1.2.2 date 2005.02.25.14.46.51; author tv; state Exp; branches; next 1.1.2.3; 1.1.2.3 date 2005.05.17.18.29.46; author tv; state Exp; branches; next 1.1.2.4; 1.1.2.4 date 2006.06.07.15.25.40; author tv; state dead; branches; next ; desc @@ 1.10 log @Remove clauses 3,4 from TNF-only copyright blocks. This is based on the decision The NetBSD Foundation made in 2008 to do so, which was already applied to src. This change has been applied to code which is likely not in other repositories. ok board@@, reviewed by riastradh@@ @ text @# $NetBSD: cmd-sink-aix-cc,v 1.9 2009/06/11 10:38:28 sno 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. # # 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. # Empty out the command buffer and build up the command line in $cmd. blibpath= orig_blibpath= dynamic= while ! queue_is_empty cmdbuf; do pop_queue cmdbuf arg $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" case $arg in -blibpath:*) orig_blibpath=${arg#-blibpath:} $debug_log $wrapperlog " (cmd-sink-aix-cc) drop: $dir [setting orig_blibpath]" dynamic=yes ;; -Wl,-blibpath:*) orig_blibpath=${arg#-Wl,-blibpath:} $debug_log $wrapperlog " (cmd-sink-aix-cc) drop: $dir [setting orig_blibpath]" dynamic=yes ;; ############################################################## # AIX ld(1) doesn't support -Wl,-rpath,* but accumulate them # into a path collection we can later append to command line # using -blibpath. ############################################################## -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*) case $arg in -R*) R="-R" ;; -Wl,-R*) R="-Wl,-R" ;; -Wl,-rpath,*) R="-Wl,-rpath," ;; -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;; -Wl,--rpath,*) R="-Wl,--rpath," ;; esac dir="${arg#$R}" case "$blibpath" in "") blibpath="$dir" ;; *) blibpath="$blibpath:$dir" ;; esac $debug_log $wrapperlog " (cmd-sink-aix-cc) drop: $dir [adding to blibpath]" dynamic=yes ;; -rpath) pop_queue cmdbuf dir case $blibpath in "") blibpath="$dir" ;; *) blibpath="$blibpath:$dir" ;; esac $debug_log $wrapperlog " (cmd-sink-aix-cc) drop: $dir [adding to blibpath]" ;; -pthread) arg=-qthreaded . $buildcmd ;; -fexceptions) arg=-qstrict=exceptions . $buildcmd ;; -fpic|-fPIC) arg=-qpic=large . $buildcmd ;; -Os) arg=-O2 . $buildcmd arg=-qnounroll . $buildcmd arg=-qnoinline . $buildcmd ;; -shared) arg=-qmkshrobj . $buildcmd arg=-bshared . $buildcmd ;; -Wl,-soname*) arg=-brtl . $buildcmd arg=-Wl,-G . $buildcmd arg=-Wl,-bexpall . $buildcmd ;; -Wall) arg=-qflag=w:w . $buildcmd arg=-qinfo . $buildcmd ;; -W|-Wextra) arg=-qformat . $buildcmd arg=-qwarn64 . $buildcmd ;; -Werror) arg=-qhalt=w . $buildcmd ;; *) . $buildcmd ;; esac done # AIX ld(1) uses -blibpath to set the runtime library search path. arg="-Wl,-blibpath:/usr/lib:/lib" if $test -n "$orig_blibpath"; then arg="$arg:$orig_blibpath" fi if $test -n "$blibpath"; then arg="$arg:$blibpath" fi $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" . $buildcmd # If we are dynamically linking, make sure the runtime linker is used. if $test -n "$dynamic"; then arg=-Wl,-brtl $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" . $buildcmd arg=-Wl,-bdynamic $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" . $buildcmd fi @ 1.9 log @wrap some more gcc flags to suitable xlc flags @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.8 2009/06/02 17:39:28 sno Exp $ a16 7 # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the NetBSD # Foundation, Inc. and its contributors. # 4. 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. @ 1.8 log @shell code is not C ... @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.7 2009/05/30 16:08:03 sno Exp $ d89 4 d97 8 d119 16 @ 1.7 log @add some argument wrappers after studying xlc manpage @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.6 2009/01/15 16:55:33 joerg Exp $ d89 1 a89 2 -fpic) -fPIC) @ 1.6 log @Fix cut & paste errors. From Jens Rehsack. @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.5 2009/01/09 11:46:34 joerg Exp $ d85 9 d95 3 a97 1 arg="-bshared" @ 1.5 log @Further refine AIX support. From Jens Rehsack. @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.4 2008/12/29 16:53:06 joerg Exp $ d104 1 a104 1 arg="-Wl,-blibpath:/usr/usr/lib:/lib" @ 1.4 log @Improve AIX/XLC support: - provide cpp wrapper using cc -E - provide c++_r wrapper working like c++ - provide -rpath handling for cc - fix some debug messages to provide the correct script name @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.3 2008/11/14 14:04:12 joerg Exp $ d78 1 a78 1 pop_queue argbuf dir d85 12 @ 1.3 log @Improve AIX/XLC support based on discussions with Jens Rehsack: - Add cc_r/xlc_r wrapper using the same rules as xlc itself. It is used for example by Perl. - Improve the RPATH emulation: - Always set -blibpath, use /usr/lib:/lib as default - If -blibpath is exlicitly given, add to the default - Additionally append any -Wl,-rpath given. @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.2 2005/05/16 17:54:51 jlam Exp $ d48 1 a48 1 $debug_log $wrapperlog " (cmd-sink-aix-ld) drop: $dir [setting orig_blibpath]" d53 1 a53 1 $debug_log $wrapperlog " (cmd-sink-aix-ld) drop: $dir [setting orig_blibpath]" d77 8 @ 1.2 log @Add missing required argument to msg_log. @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.1 2005/02/19 04:19:59 grant Exp $ d39 1 d46 10 d84 4 d89 1 a89 3 arg="-Wl,-blibpath:/lib:/usr/lib:$blibpath" $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" . $buildcmd d91 2 @ 1.1 log @add wrappers to transform arguments for AIX's ld(1), notably, if we are dynamically linking, the -brtl flag must be passed to the linker so that the runtime linker is used. tested on AIX 4.3 and 5.1 by garbled@@. @ text @d1 1 a1 1 # $NetBSD$ d63 1 a63 1 $debug_log " (cmd-sink-aix-cc) drop: $dir [adding to blibpath]" d75 1 a75 1 $debug_log " (cmd-sink-aix-cc) pop: $arg" d82 1 a82 1 $debug_log " (cmd-sink-aix-cc) pop: $arg" d85 1 a85 1 $debug_log " (cmd-sink-aix-cc) pop: $arg" @ 1.1.2.1 log @file cmd-sink-aix-cc was added on branch tv-derecurse on 2005-02-25 14:46:51 +0000 @ text @d1 87 @ 1.1.2.2 log @sync with HEAD @ text @a0 87 # $NetBSD: cmd-sink-aix-cc,v 1.1.2.1 2005/02/25 14:46:51 tv 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. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the NetBSD # Foundation, Inc. and its contributors. # 4. 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. # Empty out the command buffer and build up the command line in $cmd. blibpath= dynamic= while ! queue_is_empty cmdbuf; do pop_queue cmdbuf arg $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" case $arg in ############################################################## # AIX ld(1) doesn't support -Wl,-rpath,* but accumulate them # into a path collection we can later append to command line # using -blibpath. ############################################################## -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*) case $arg in -R*) R="-R" ;; -Wl,-R*) R="-Wl,-R" ;; -Wl,-rpath,*) R="-Wl,-rpath," ;; -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;; -Wl,--rpath,*) R="-Wl,--rpath," ;; esac dir="${arg#$R}" case "$blibpath" in "") blibpath="$dir" ;; *) blibpath="$blibpath:$dir" ;; esac $debug_log " (cmd-sink-aix-cc) drop: $dir [adding to blibpath]" dynamic=yes ;; *) . $buildcmd ;; esac done # AIX ld(1) uses -blibpath to set the runtime library search path. if $test -n "$blibpath"; then arg="-Wl,-blibpath:/lib:/usr/lib:$blibpath" $debug_log " (cmd-sink-aix-cc) pop: $arg" . $buildcmd fi # If we are dynamically linking, make sure the runtime linker is used. if $test -n "$dynamic"; then arg=-Wl,-brtl $debug_log " (cmd-sink-aix-cc) pop: $arg" . $buildcmd arg=-Wl,-bdynamic $debug_log " (cmd-sink-aix-cc) pop: $arg" . $buildcmd fi @ 1.1.2.3 log @sync [all but bsd.pkg.mk] with HEAD @ text @d1 1 a1 1 # $NetBSD: cmd-sink-aix-cc,v 1.1.2.2 2005/05/17 18:29:46 tv Exp $ d63 1 a63 1 $debug_log $wrapperlog " (cmd-sink-aix-cc) drop: $dir [adding to blibpath]" d75 1 a75 1 $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" d82 1 a82 1 $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" d85 1 a85 1 $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg" @ 1.1.2.4 log @EOL the tv-derecurse branch; it has become too outdated. The last live revision can be fetched at the tv-derecurse-eol tag. @ text @d1 87 @