pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Create wrappers for the compilers for every languag...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8bd60b252c0c
branches:  trunk
changeset: 468612:8bd60b252c0c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Feb 15 13:34:33 2004 +0000

description:
Create wrappers for the compilers for every language supported by the
compiler set.  This will cause the libtool configuration found in several
packages to use the correct C++ compiler even though the package doesn't
use C++.  This was causing bugs when CXXFLAGS contained flags not
understood by the system gcc-2.95.3.

diffstat:

 mk/buildlink2/bsd.buildlink2.mk |   8 +-------
 mk/buildlink3/bsd.buildlink3.mk |   8 +-------
 mk/compiler/gcc.mk              |  10 +++++-----
 mk/compiler/mipspro.mk          |   6 +++---
 mk/compiler/sunpro.mk           |   6 +++---
 5 files changed, 13 insertions(+), 25 deletions(-)

diffs (143 lines):

diff -r e8a036d377df -r 8bd60b252c0c mk/buildlink2/bsd.buildlink2.mk
--- a/mk/buildlink2/bsd.buildlink2.mk   Sun Feb 15 13:18:42 2004 +0000
+++ b/mk/buildlink2/bsd.buildlink2.mk   Sun Feb 15 13:34:33 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.115 2004/02/09 03:05:59 jlam Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.116 2004/02/15 13:34:33 jlam Exp $
 #
 # An example package buildlink2.mk file:
 #
@@ -468,17 +468,11 @@
 #      may be invoked.
 #
 _BLNK_WRAPPEES+=       AS
-.if !empty(USE_LANGUAGES:Mc)
 _BLNK_WRAPPEES+=       CC
 _BLNK_WRAPPEES+=       CPP
-.endif
-.if !empty(USE_LANGUAGES:Mc++)
 _BLNK_WRAPPEES+=       CXX
-.endif
 _BLNK_WRAPPEES+=       LD
-.if !empty(USE_LANGUAGES:Mfortran) || defined(USE_FORTRAN)
 _BLNK_WRAPPEES+=       FC
-.endif
 _BLNK_WRAPPEES+=       LIBTOOL SHLIBTOOL
 .if defined(USE_LIBTOOL)
 _LIBTOOL=              ${BUILDLINK_LIBTOOL}
diff -r e8a036d377df -r 8bd60b252c0c mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Sun Feb 15 13:18:42 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Sun Feb 15 13:34:33 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.82 2004/02/12 08:28:58 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.83 2004/02/15 13:34:33 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -943,17 +943,11 @@
 #       may be invoked.
 #
 _BLNK_WRAPPEES+=       AS
-.if !empty(USE_LANGUAGES:Mc)
 _BLNK_WRAPPEES+=       CC
 _BLNK_WRAPPEES+=       CPP
-.endif
-.if !empty(USE_LANGUAGES:Mc++)
 _BLNK_WRAPPEES+=       CXX
-.endif
 _BLNK_WRAPPEES+=       LD
-.if !empty(USE_LANGUAGES:Mfortran) || defined(USE_FORTRAN)
 _BLNK_WRAPPEES+=       FC
-.endif
 _BLNK_WRAPPEES+=       LIBTOOL SHLIBTOOL
 .if defined(USE_LIBTOOL)
 _LIBTOOL=              ${BUILDLINK_LIBTOOL}
diff -r e8a036d377df -r 8bd60b252c0c mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Sun Feb 15 13:18:42 2004 +0000
+++ b/mk/compiler/gcc.mk        Sun Feb 15 13:34:33 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.51 2004/02/12 08:54:48 jlam Exp $
+# $NetBSD: gcc.mk,v 1.52 2004/02/15 13:34:33 jlam Exp $
 
 .if !defined(COMPILER_GCC_MK)
 COMPILER_GCC_MK=       one
@@ -256,25 +256,25 @@
 .  elif !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
 _GCCBINDIR=    ${_CC:H}
 .  endif
-.  if exists(${_GCCBINDIR}/gcc) && !empty(_LANGUAGES.gcc:Mc)
+.  if exists(${_GCCBINDIR}/gcc)
 _GCC_CC=       ${_GCC_DIR}/bin/gcc
 _GCC_LINKS+=   _GCC_CC
 PKG_CC=                ${_GCC_CC}
 CC=            ${PKG_CC:T}
 .  endif
-.  if exists(${_GCCBINDIR}/cpp) && !empty(_LANGUAGES.gcc:Mc)
+.  if exists(${_GCCBINDIR}/cpp)
 _GCC_CPP=      ${_GCC_DIR}/bin/cpp
 _GCC_LINKS+=   _GCC_CPP
 PKG_CPP=       ${_GCC_CPP}
 CPP=           ${PKG_CPP:T}
 .  endif
-.  if exists(${_GCCBINDIR}/g++) && !empty(_LANGUAGES.gcc:Mc++)
+.  if exists(${_GCCBINDIR}/g++)
 _GCC_CXX=      ${_GCC_DIR}/bin/g++
 _GCC_LINKS+=   _GCC_CXX
 PKG_CXX=       ${_GCC_CXX}
 CXX=           ${PKG_CXX:T}
 .  endif
-.  if exists(${_GCCBINDIR}/g77) && !empty(_LANGUAGES.gcc:Mfortran)
+.  if exists(${_GCCBINDIR}/g77)
 _GCC_FC=       ${_GCC_DIR}/bin/g77
 _GCC_LINKS+=   _GCC_FC
 PKG_FC=                ${_GCC_FC}
diff -r e8a036d377df -r 8bd60b252c0c mk/compiler/mipspro.mk
--- a/mk/compiler/mipspro.mk    Sun Feb 15 13:18:42 2004 +0000
+++ b/mk/compiler/mipspro.mk    Sun Feb 15 13:34:33 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.19 2004/02/12 21:37:08 jlam Exp $
+# $NetBSD: mipspro.mk,v 1.20 2004/02/15 13:34:33 jlam Exp $
 
 .if !defined(COMPILER_MIPSPRO_MK)
 COMPILER_MIPSPRO_MK=   one
@@ -17,13 +17,13 @@
 
 _MIPSPRO_DIR=          ${WRKDIR}/.mipspro
 _MIPSPRO_LINKS=                # empty
-.  if !empty(_LANGUAGES.mipspro:Mc)
+.  if exists(${MIPSPROBASE}/bin/cc)
 _MIPSPRO_CC=           ${_MIPSPRO_DIR}/bin/cc
 _MIPSPRO_LINKS+=       _MIPSPRO_CC
 PKG_CC=                        ${_MIPSPRO_CC}
 CC=                    ${PKG_CC:T}
 .  endif
-.  if !empty(_LANGUAGES.mipspro:Mc++)
+.  if exists(${MIPSPROBASE}/bin/CC)
 _MIPSPRO_CXX=          ${_MIPSPRO_DIR}/bin/CC
 _MIPSPRO_LINKS+=       _MIPSPRO_CXX
 PKG_CXX=               ${_MIPSPRO_CXX}
diff -r e8a036d377df -r 8bd60b252c0c mk/compiler/sunpro.mk
--- a/mk/compiler/sunpro.mk     Sun Feb 15 13:18:42 2004 +0000
+++ b/mk/compiler/sunpro.mk     Sun Feb 15 13:34:33 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.17 2004/02/12 21:37:08 jlam Exp $
+# $NetBSD: sunpro.mk,v 1.18 2004/02/15 13:34:33 jlam Exp $
 
 .if !defined(COMPILER_SUNPRO_MK)
 COMPILER_SUNPRO_MK=    one
@@ -17,13 +17,13 @@
 
 _SUNPRO_DIR=   ${WRKDIR}/.sunpro
 _SUNPRO_LINKS= # empty
-.  if !empty(_LANGUAGES.sunpro:Mc)
+.  if exists(${SUNWSPROBASE}/bin/cc)
 _SUNPRO_CC=    ${_SUNPRO_DIR}/bin/cc
 _SUNPRO_LINKS+=        _SUNPRO_CC
 PKG_CC=                ${_SUNPRO_CC}
 CC=            ${PKG_CC:T}
 .  endif
-.  if !empty(_LANGUAGES.sunpro:Mc++)
+.  if exists(${SUNWSPROBASE}/bin/CC)
 _SUNPRO_CXX=   ${_SUNPRO_DIR}/bin/CC
 _SUNPRO_LINKS+=        _SUNPRO_CXX
 PKG_CXX=       ${_SUNPRO_CXX}



Home | Main Index | Thread Index | Old Index