pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/wrapper Merge aix-xlc block into the xlc block and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fd9f8d9d0dba
branches:  trunk
changeset: 549663:fd9f8d9d0dba
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Nov 06 21:34:16 2008 +0000

description:
Merge aix-xlc block into the xlc block and distinguish AIX and Darwin.
The PKG_FAIL_REASON isn't executed by default, no idea why, but this
makes it a bit cleaner why the compiler wrapper will fail and fixes the
more important AIX case.

diffstat:

 mk/wrapper/bsd.wrapper.mk |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r 11cf4ff54f67 -r fd9f8d9d0dba mk/wrapper/bsd.wrapper.mk
--- a/mk/wrapper/bsd.wrapper.mk Thu Nov 06 21:16:46 2008 +0000
+++ b/mk/wrapper/bsd.wrapper.mk Thu Nov 06 21:34:16 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.77 2008/10/30 18:56:22 joerg Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.78 2008/11/06 21:34:16 joerg Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -230,12 +230,6 @@
 _WRAP_TYPE.${_wrappee_}?=              ${_wrappee_}
 .endfor        # _WRAPPEES
 
-.if !empty(PKGSRC_COMPILER:Maix-xlc)
-_WRAP_CMD_SINK.CC=     ${WRAPPER_TMPDIR}/cmd-sink-aix-xlc
-_WRAP_CMD_SINK.CXX=    ${_WRAP_CMD_SINK.CC}
-_WRAP_CMD_SINK.LD=     ${_WRAP_CMD_SINK.CC}
-.endif
-
 .if !empty(PKGSRC_COMPILER:Micc)
 .  if !empty(CC_VERSION:M8.1) || !empty(CC_VERSION:M9.0)
 _WRAP_CMD_SINK.CC=     ${WRAPPER_TMPDIR}/cmd-sink-icc81-cc
@@ -287,12 +281,20 @@
 .endif
 
 .if !empty(PKGSRC_COMPILER:Mxlc)
+.  if ${OPSYS} == "AIX"
+_WRAP_CMD_SINK.CC=     ${WRAPPER_TMPDIR}/cmd-sink-aix-xlc
+_WRAP_CMD_SINK.CXX=    ${_WRAP_CMD_SINK.CC}
+_WRAP_CMD_SINK.LD=     ${_WRAP_CMD_SINK.CC}
+.  elif ${OPSYS} == "Darwin"
 _WRAP_CMD_SINK.CC=     ${WRAPPER_TMPDIR}/cmd-sink-darwin-xlc
 _WRAP_CMD_SINK.CXX=    ${_WRAP_CMD_SINK.CC}
 _WRAP_CACHE_BODY.CC=   ${WRAPPER_TMPDIR}/cache-body-xlc-cc
 _WRAP_TRANSFORM.CC=    ${WRAPPER_TMPDIR}/transform-xlc-cc
 _WRAP_CACHE_BODY.CXX=  ${_WRAP_CACHE_BODY.CC}
 _WRAP_TRANSFORM.CXX=   ${_WRAP_TRANSFORM.CC}
+.  else
+PKG_FAIL_REASON+=      "xlc unsupported on ${OPSYS}"
+.  endif
 .endif
 
 .if !empty(PKGSRC_COMPILER:Mccc)



Home | Main Index | Thread Index | Old Index