pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper Use 'debug_log' instead of 'msg_log' so tha...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1554a282650f
branches: trunk
changeset: 516899:1554a282650f
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Jul 31 14:43:48 2006 +0000
description:
Use 'debug_log' instead of 'msg_log' so that these wrapper internals aren't
exposed unless WRAPPER_DEBUG is set to "yes".
diffstat:
mk/wrapper/transform-aix-cc | 6 +++---
mk/wrapper/transform-ccc-cc | 10 +++++-----
mk/wrapper/transform-icc-cc | 12 ++++++------
mk/wrapper/transform-ido-cc | 24 ++++++++++++------------
mk/wrapper/transform-mipspro-cc | 8 ++++----
mk/wrapper/transform-mipspro-ucode-cc | 10 +++++-----
mk/wrapper/transform-solaris-gcc | 6 +++---
mk/wrapper/transform-sunpro-cc | 28 ++++++++++++++--------------
mk/wrapper/transform-xlc-cc | 10 +++++-----
9 files changed, 57 insertions(+), 57 deletions(-)
diffs (truncated from 483 to 300 lines):
diff -r 87618c4bee17 -r 1554a282650f mk/wrapper/transform-aix-cc
--- a/mk/wrapper/transform-aix-cc Mon Jul 31 14:05:00 2006 +0000
+++ b/mk/wrapper/transform-aix-cc Mon Jul 31 14:43:48 2006 +0000
@@ -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 -r 87618c4bee17 -r 1554a282650f mk/wrapper/transform-ccc-cc
--- a/mk/wrapper/transform-ccc-cc Mon Jul 31 14:05:00 2006 +0000
+++ b/mk/wrapper/transform-ccc-cc Mon Jul 31 14:43:48 2006 +0000
@@ -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 @@
######################################################################
-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 @@
;;
-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 -r 87618c4bee17 -r 1554a282650f mk/wrapper/transform-icc-cc
--- a/mk/wrapper/transform-icc-cc Mon Jul 31 14:05:00 2006 +0000
+++ b/mk/wrapper/transform-icc-cc Mon Jul 31 14:43:48 2006 +0000
@@ -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 @@
######################################################################
-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 -r 87618c4bee17 -r 1554a282650f mk/wrapper/transform-ido-cc
--- a/mk/wrapper/transform-ido-cc Mon Jul 31 14:05:00 2006 +0000
+++ b/mk/wrapper/transform-ido-cc Mon Jul 31 14:43:48 2006 +0000
@@ -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 @@
######################################################################
-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 @@
######################################################################
-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 @@
######################################################################
-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 @@
######################################################################
-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 @@
######################################################################
-[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 @@
######################################################################
-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 @@
-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 @@
######################################################################
-notall)
arg=-none
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
+ debug_log $wrapperlog " (transform-ido-cc) to: $arg"
addtocache=yes
;;
esac
diff -r 87618c4bee17 -r 1554a282650f mk/wrapper/transform-mipspro-cc
--- a/mk/wrapper/transform-mipspro-cc Mon Jul 31 14:05:00 2006 +0000
+++ b/mk/wrapper/transform-mipspro-cc Mon Jul 31 14:43:48 2006 +0000
@@ -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 @@
######################################################################
-O*)
arg=
- msg_log $wrapperlog " (transform-mipspro-cc) to: $arg"
+ debug_log $wrapperlog " (transform-mipspro-cc) to: $arg"
addtocache=yes
;;
######################################################################
@@ -56,7 +56,7 @@
######################################################################
-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 @@
######################################################################
-W*)
arg=
- msg_log $wrapperlog " (transform-mipspro-cc) to: $arg"
+ debug_log $wrapperlog " (transform-mipspro-cc) to: $arg"
addtocache=yes
;;
esac
diff -r 87618c4bee17 -r 1554a282650f mk/wrapper/transform-mipspro-ucode-cc
--- a/mk/wrapper/transform-mipspro-ucode-cc Mon Jul 31 14:05:00 2006 +0000
+++ b/mk/wrapper/transform-mipspro-ucode-cc Mon Jul 31 14:43:48 2006 +0000
@@ -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 @@
######################################################################
-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 @@
######################################################################
-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 @@
######################################################################
-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 @@
######################################################################
-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 -r 87618c4bee17 -r 1554a282650f mk/wrapper/transform-solaris-gcc
--- a/mk/wrapper/transform-solaris-gcc Mon Jul 31 14:05:00 2006 +0000
+++ b/mk/wrapper/transform-solaris-gcc Mon Jul 31 14:43:48 2006 +0000
@@ -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 @@
# -Kpic to -fPIC.
Home |
Main Index |
Thread Index |
Old Index