diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-31 14:43:48 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-31 14:43:48 +0000 |
commit | 50086541bd59d46c0bd920d13a6131f493a1cc15 (patch) | |
tree | a7926dae9f0154a9a9b0da36201e0141e2913e4b /mk/wrapper | |
parent | 3da2aa848fbef7ef966f6d3962b5678e7504ea69 (diff) | |
download | pkgsrc-50086541bd59d46c0bd920d13a6131f493a1cc15.tar.gz |
Use 'debug_log' instead of 'msg_log' so that these wrapper internals aren't
exposed unless WRAPPER_DEBUG is set to "yes".
Diffstat (limited to 'mk/wrapper')
-rw-r--r-- | mk/wrapper/transform-aix-cc | 6 | ||||
-rw-r--r-- | mk/wrapper/transform-ccc-cc | 10 | ||||
-rw-r--r-- | mk/wrapper/transform-icc-cc | 12 | ||||
-rw-r--r-- | mk/wrapper/transform-ido-cc | 24 | ||||
-rw-r--r-- | mk/wrapper/transform-mipspro-cc | 8 | ||||
-rw-r--r-- | mk/wrapper/transform-mipspro-ucode-cc | 10 | ||||
-rw-r--r-- | mk/wrapper/transform-solaris-gcc | 6 | ||||
-rw-r--r-- | mk/wrapper/transform-sunpro-cc | 28 | ||||
-rw-r--r-- | mk/wrapper/transform-xlc-cc | 10 |
9 files changed, 57 insertions, 57 deletions
diff --git a/mk/wrapper/transform-aix-cc b/mk/wrapper/transform-aix-cc index 1b2b213cf5f..b1f80817b4f 100644 --- a/mk/wrapper/transform-aix-cc +++ b/mk/wrapper/transform-aix-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-aix-cc,v 1.1 2005/02/19 04:19:59 grant Exp $ +# $NetBSD: transform-aix-cc,v 1.2 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -38,14 +38,14 @@ case $arg in -H[0-9]*|-T[0-9]*|-b*) arg=-Wl,$arg - msg_log $wrapperlog " (transform-aix-cc) to: $arg" + debug_log $wrapperlog " (transform-aix-cc) to: $arg" addtocache=yes ;; # AIX ld(1) uses -G to create shared libraries, and we must make sure # the runtime linker is used. -shared) arg="-Wl,-G -Wl,-brtl" - msg_log $wrapperlog " (transform-aix-cc) to: $arg" + debug_log $wrapperlog " (transform-aix-cc) to: $arg" addtocache=yes split_arg=yes ;; diff --git a/mk/wrapper/transform-ccc-cc b/mk/wrapper/transform-ccc-cc index e7e055d2ddc..1d1197670c8 100644 --- a/mk/wrapper/transform-ccc-cc +++ b/mk/wrapper/transform-ccc-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-ccc-cc,v 1.1 2004/11/20 04:37:08 grant Exp $ +# $NetBSD: transform-ccc-cc,v 1.2 2006/07/31 14:43:48 jlam Exp $ # case $arg in @@ -8,7 +8,7 @@ case $arg in ###################################################################### -Wl,-R*) arg="-Wl,-rpath,${arg#-Wl,-R}" - msg_log $wrapperlog " (transform-ccc-cc) to: $arg" + debug_log $wrapperlog " (transform-ccc-cc) to: $arg" addtocache=yes ;; -W[LlSc],*) @@ -16,17 +16,17 @@ case $arg in ;; -W*) arg= - msg_log $wrapperlog " (transform-ccc-cc) to: $arg" + debug_log $wrapperlog " (transform-ccc-cc) to: $arg" addtocache=yes ;; -mieee) arg="-ieee" - msg_log $wrapperlog " (transform-ccc-cc) to: $arg" + debug_log $wrapperlog " (transform-ccc-cc) to: $arg" addtocache=yes ;; -g) arg="-g3" - msg_log $wrapperlog " (transform-ccc-cc) to: $arg" + debug_log $wrapperlog " (transform-ccc-cc) to: $arg" addtocache=yes ;; esac diff --git a/mk/wrapper/transform-icc-cc b/mk/wrapper/transform-icc-cc index 263c55086e2..69a2671f75d 100644 --- a/mk/wrapper/transform-icc-cc +++ b/mk/wrapper/transform-icc-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-icc-cc,v 1.3 2005/02/16 23:58:29 grant Exp $ +# $NetBSD: transform-icc-cc,v 1.4 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -40,29 +40,29 @@ case $arg in ###################################################################### -fexceptions|-ffast-math|-fomit-frame-pointer|-pedantic|-pipe|-s|-MP|-OPT:*) arg= - msg_log $wrapperlog " (transform-icc-cc) to: $arg" + debug_log $wrapperlog " (transform-icc-cc) to: $arg" addtocache=yes ;; -finline-functions) arg=-Ob2 - msg_log $wrapperlog " (transform-icc-cc) to: $arg" + debug_log $wrapperlog " (transform-icc-cc) to: $arg" addtocache=yes ;; -funroll-all-loops|-funroll-loops) arg=-unroll - msg_log $wrapperlog " (transform-icc-cc) to: $arg" + debug_log $wrapperlog " (transform-icc-cc) to: $arg" addtocache=yes ;; -O[4-9]|-O[12][0-9]) arg=-O3 - msg_log $wrapperlog " (transform-icc-cc) to: $arg" + debug_log $wrapperlog " (transform-icc-cc) to: $arg" addtocache=yes ;; -Wall|-Wl,*) ;; -W*) arg= - msg_log $wrapperlog " (transform-icc-cc) to: $arg" + debug_log $wrapperlog " (transform-icc-cc) to: $arg" addtocache=yes ;; esac diff --git a/mk/wrapper/transform-ido-cc b/mk/wrapper/transform-ido-cc index 9c8ea5c1abe..82e9e1dba3a 100644 --- a/mk/wrapper/transform-ido-cc +++ b/mk/wrapper/transform-ido-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-ido-cc,v 1.2 2005/10/30 10:33:23 schwarz Exp $ +# $NetBSD: transform-ido-cc,v 1.3 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -48,7 +48,7 @@ case $arg in ###################################################################### -O3) arg=-O2 - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -58,22 +58,22 @@ case $arg in ###################################################################### -Wl,-R*) arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-Wl:-R|-Wl,-rpath,|"` - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; -Wl,-rpath,*) arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-Wl:-rpath:|-Wl,-rpath,|"` - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; -rpath*) arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-rpath.|-Wl,-rpath,|"` - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; -R*) arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-R|-Wl,-rpath,|"` - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -81,7 +81,7 @@ case $arg in ###################################################################### -fsigned-char|-fno-unsigned-char) arg=-signed - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -89,7 +89,7 @@ case $arg in ###################################################################### -g) arg=-g3 - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -111,7 +111,7 @@ case $arg in ###################################################################### -[WOfm]*|-pipe|-MM|-nostd*|--disable-shared|-non_shared|-n32) arg= - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -119,7 +119,7 @@ case $arg in ###################################################################### -pg) arg=-p - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -128,7 +128,7 @@ case $arg in -static) arg="-B static" split_arg=yes - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -136,7 +136,7 @@ case $arg in ###################################################################### -notall) arg=-none - msg_log $wrapperlog " (transform-ido-cc) to: $arg" + debug_log $wrapperlog " (transform-ido-cc) to: $arg" addtocache=yes ;; esac diff --git a/mk/wrapper/transform-mipspro-cc b/mk/wrapper/transform-mipspro-cc index f2e553dd9bd..1ada415b786 100644 --- a/mk/wrapper/transform-mipspro-cc +++ b/mk/wrapper/transform-mipspro-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-mipspro-cc,v 1.1 2004/09/21 15:01:41 jlam Exp $ +# $NetBSD: transform-mipspro-cc,v 1.2 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -47,7 +47,7 @@ case $arg in ###################################################################### -O*) arg= - msg_log $wrapperlog " (transform-mipspro-cc) to: $arg" + debug_log $wrapperlog " (transform-mipspro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -56,7 +56,7 @@ case $arg in ###################################################################### -Wl,-R*) arg="-Wl,-rpath,${arg#-Wl,-R}" - msg_log $wrapperlog " (transform-mipspro-cc) to: $arg" + debug_log $wrapperlog " (transform-mipspro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -72,7 +72,7 @@ case $arg in ###################################################################### -W*) arg= - msg_log $wrapperlog " (transform-mipspro-cc) to: $arg" + debug_log $wrapperlog " (transform-mipspro-cc) to: $arg" addtocache=yes ;; esac diff --git a/mk/wrapper/transform-mipspro-ucode-cc b/mk/wrapper/transform-mipspro-ucode-cc index 4243eb7d1ad..8beb3e76668 100644 --- a/mk/wrapper/transform-mipspro-ucode-cc +++ b/mk/wrapper/transform-mipspro-ucode-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-mipspro-ucode-cc,v 1.1 2004/09/21 15:01:41 jlam Exp $ +# $NetBSD: transform-mipspro-ucode-cc,v 1.2 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -46,7 +46,7 @@ case $arg in ###################################################################### -O*) arg= - msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" + debug_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -55,7 +55,7 @@ case $arg in ###################################################################### -Wl,-R*) arg="-Wl,-rpath,${arg#-Wl,-R}" - msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" + debug_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -70,7 +70,7 @@ case $arg in ###################################################################### -W*) arg= - msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" + debug_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -78,7 +78,7 @@ case $arg in ###################################################################### -f[Pp][Ii][Cc]) arg="-KPIC" - msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" + debug_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg" addtocache=yes ;; esac diff --git a/mk/wrapper/transform-solaris-gcc b/mk/wrapper/transform-solaris-gcc index c9095570ac7..fb177e05f7e 100644 --- a/mk/wrapper/transform-solaris-gcc +++ b/mk/wrapper/transform-solaris-gcc @@ -1,4 +1,4 @@ -# $NetBSD: transform-solaris-gcc,v 1.2 2006/06/08 06:29:44 rillig Exp $ +# $NetBSD: transform-solaris-gcc,v 1.3 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -36,12 +36,12 @@ case $arg in # -Kpic to -fPIC. -Kpic|-KPIC) arg=-fPIC - msg_log $wrapperlog " (transform-solaris-gcc) to: $arg" + debug_log $wrapperlog " (transform-solaris-gcc) to: $arg" addtocache=yes ;; -mt) # (from SunPro) arg=-threads - msg_log $wrapperlog " (transform-solaris-gcc) to: $arg" + debug_log $wrapperlog " (transform-solaris-gcc) to: $arg" addtocache=yes ;; esac diff --git a/mk/wrapper/transform-sunpro-cc b/mk/wrapper/transform-sunpro-cc index e5ff34602f7..24bd0acd0b7 100644 --- a/mk/wrapper/transform-sunpro-cc +++ b/mk/wrapper/transform-sunpro-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-sunpro-cc,v 1.10 2005/11/28 13:43:24 rillig Exp $ +# $NetBSD: transform-sunpro-cc,v 1.11 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -41,7 +41,7 @@ case $arg in ###################################################################### -O[12345]) arg="-xO${arg#-O}" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -50,7 +50,7 @@ case $arg in ###################################################################### -O?*) arg= - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -59,7 +59,7 @@ case $arg in ###################################################################### -Wl,-R*) arg="${arg#-Wl,}" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -67,7 +67,7 @@ case $arg in ###################################################################### -Wl,-soname=*) arg="-h${arg#-Wl,-soname=}" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -76,7 +76,7 @@ case $arg in ###################################################################### -Wl,--export-dynamic) arg= - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -91,7 +91,7 @@ case $arg in ###################################################################### -W*) arg= - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -99,7 +99,7 @@ case $arg in ###################################################################### -static) arg="-Bstatic" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -107,7 +107,7 @@ case $arg in ###################################################################### --export-dynamic|-shared) arg="-G" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -115,7 +115,7 @@ case $arg in ###################################################################### -f[Pp][Ii][Cc]) arg="-Kpic" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -123,7 +123,7 @@ case $arg in ###################################################################### -pthread) arg="-mt -lpthread" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes split_arg=yes ;; @@ -135,7 +135,7 @@ case $arg in ###################################################################### -fast) arg="-fast -xnolibmopt" - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes split_arg=yes ;; @@ -150,7 +150,7 @@ case $arg in ###################################################################### -f*) arg= - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -158,7 +158,7 @@ case $arg in ###################################################################### -ansi|-pedantic|-pipe|-traditional) arg= - msg_log $wrapperlog " (transform-sunpro-cc) to: $arg" + debug_log $wrapperlog " (transform-sunpro-cc) to: $arg" addtocache=yes ;; esac diff --git a/mk/wrapper/transform-xlc-cc b/mk/wrapper/transform-xlc-cc index c3c8c100b06..ba11dd282b4 100644 --- a/mk/wrapper/transform-xlc-cc +++ b/mk/wrapper/transform-xlc-cc @@ -1,4 +1,4 @@ -# $NetBSD: transform-xlc-cc,v 1.6 2004/12/19 00:38:59 grant Exp $ +# $NetBSD: transform-xlc-cc,v 1.7 2006/07/31 14:43:48 jlam Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -46,14 +46,14 @@ case $arg in ###################################################################### -W*) arg= - msg_log $wrapperlog " (transform-xlc-cc) to: $arg" + debug_log $wrapperlog " (transform-xlc-cc) to: $arg" addtocache=yes ;; # xlc uses -qmkshrobj to create shared objects, and we also need to # tell the linker to use a flat namespace and allow undefined symbols. -dynamiclib) arg="-qmkshrobj -Wl,-flat_namespace -Wl,-undefined -Wl,suppress" - msg_log $wrapperlog " (transform-xlc-cc) to: $arg" + debug_log $wrapperlog " (transform-xlc-cc) to: $arg" addtocache=yes split_arg=yes ;; @@ -61,7 +61,7 @@ case $arg in # the data section for PIC. -fno-common|-fPIC) arg=-qnocommon - msg_log $wrapperlog " (transform-xlc-cc) to: $arg" + debug_log $wrapperlog " (transform-xlc-cc) to: $arg" addtocache=yes ;; ###################################################################### @@ -69,7 +69,7 @@ case $arg in ###################################################################### -pipe|-ansi|-fno-gnu-keywords|-fstrict-prototypes|-no-cpp-precomp|-pedantic) arg= - msg_log $wrapperlog " (transform-xlc-cc) to: $arg" + debug_log $wrapperlog " (transform-xlc-cc) to: $arg" addtocache=yes ;; esac |