pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Add GCC_VERSION_SUFFIX, which can be used ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/89d2a4481a68
branches: trunk
changeset: 362089:89d2a4481a68
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu May 04 18:44:12 2017 +0000
description:
Add GCC_VERSION_SUFFIX, which can be used i.e. on SuSE systems to select
between different compiler versions.
diffstat:
mk/compiler/gcc.mk | 40 ++++++++++++++++++++++------------------
1 files changed, 22 insertions(+), 18 deletions(-)
diffs (82 lines):
diff -r cd03f6543a49 -r 89d2a4481a68 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Thu May 04 18:30:56 2017 +0000
+++ b/mk/compiler/gcc.mk Thu May 04 18:44:12 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.176 2017/04/16 23:12:37 khorben Exp $
+# $NetBSD: gcc.mk,v 1.177 2017/05/04 18:44:12 joerg Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -20,6 +20,10 @@
# When set to "yes", the runtime gcc libraries (libgcc, libstdc++
# etc) will be used from pkgsrc rather than the native compiler.
#
+# GCC_VERSION_SUFIXX
+# Optional suffix for GCC binaries, i.e. if the installed names are like
+# /usr/bin/g++-5, /usr/bin/gcc-5 etc.
+
# Package-settable variables:
#
# GCC_REQD
@@ -714,44 +718,44 @@
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
_GCC_BIN_PREFIX= ${MACHINE_GNU_PLATFORM}-
.endif
-.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}gcc)
+.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}gcc${GCC_VERSION_SUFFIX})
_GCC_VARS+= CC
-_GCC_CC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}gcc
+_GCC_CC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}gcc${GCC_VERSION_SUFFIX}
_ALIASES.CC= cc gcc
-CCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gcc
+CCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gcc${GCC_VERSION_SUFFIX}
PKG_CC:= ${_GCC_CC}
.endif
-.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}cpp)
+.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}cpp${GCC_VERSION_SUFFIX})
_GCC_VARS+= CPP
-_GCC_CPP= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}cpp
+_GCC_CPP= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}cpp${GCC_VERSION_SUFFIX}
_ALIASES.CPP= cpp
-CPPPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}cpp
+CPPPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}cpp${GCC_VERSION_SUFFIX}
PKG_CPP:= ${_GCC_CPP}
.endif
-.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}g++)
+.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}g++${GCC_VERSION_SUFFIX})
_GCC_VARS+= CXX
-_GCC_CXX= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}g++
+_GCC_CXX= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}g++${GCC_VERSION_SUFFIX}
_ALIASES.CXX= c++ g++
-CXXPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g++
+CXXPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g++${GCC_VERSION_SUFFIX}
PKG_CXX:= ${_GCC_CXX}
.endif
-.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77)
+.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77${GCC_VERSION_SUFFIX})
_GCC_VARS+= FC
-_GCC_FC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}g77
+_GCC_FC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}g77${GCC_VERSION_SUFFIX}
_ALIASES.FC= f77 g77
FC= g77
-FCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77
-F77PATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77
+FCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77${GCC_VERSION_SUFFIX}
+F77PATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77${GCC_VERSION_SUFFIX}
PKG_FC:= ${_GCC_FC}
PKGSRC_FORTRAN?= g77
.endif
-.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran)
+.if exists(${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran${GCC_VERSION_SUFFIX})
_GCC_VARS+= FC
-_GCC_FC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}gfortran
+_GCC_FC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}gfortran${GCC_VERSION_SUFFIX}
_ALIASES.FC= gfortran
FC= gfortran
-FCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran
-F77PATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran
+FCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran${GCC_VERSION_SUFFIX}
+F77PATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran${GCC_VERSION_SUFFIX}
PKG_FC:= ${_GCC_FC}
PKGSRC_FORTRAN?= gfortran
.endif
Home |
Main Index |
Thread Index |
Old Index