diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-15 13:34:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-15 13:34:33 +0000 |
commit | f9efcd51485f9c01bff22b1b0997d1754fe785e2 (patch) | |
tree | 9d3b21de3c071723a585d256f02d6e0e91ec960a /mk/compiler/sunpro.mk | |
parent | 08c84c1a2ddb3e889cf105cb2b713034c8952ffa (diff) | |
download | pkgsrc-f9efcd51485f9c01bff22b1b0997d1754fe785e2.tar.gz |
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 (limited to 'mk/compiler/sunpro.mk')
-rw-r--r-- | mk/compiler/sunpro.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk index 12522a4a5e4..deb2721bd18 100644 --- a/mk/compiler/sunpro.mk +++ b/mk/compiler/sunpro.mk @@ -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 @@ _LANGUAGES.sunpro+= ${LANGUAGES.sunpro:M${_lang_}} _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} |