tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: a concrete proposal for fixing the gcc c++ mixed-compiler issue
I'd like to write logic to make pkgsrc always use the newest GCC it has
available. It's simple enough to write, and will always behave
correctly*
* might blow up for NetBSD only, as it has libstdc++.so.7 in base and
pkgsrc installs a libstdc++.so.6. Your suggestion might be appropriate
for it. But it needs to be restricted to x86 due to NetBSD having not
upstreamed local changes for a while, and pkgsrc GCC not building in
other platforms.
Additionally, the following change:
C++11 implies GCC_REQD+=4.8
(Additional higher GCC_REQD seems to be respected)
(Followed by adding c++11 to poppler, harfbuzz, and the third thing I
forgot now)
Index: compiler/gcc.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/compiler/gcc.mk,v
retrieving revision 1.179
diff -u -r1.179 gcc.mk
--- compiler/gcc.mk 25 Jun 2017 01:41:15 -0000 1.179
+++ compiler/gcc.mk 1 Jul 2017 09:20:21 -0000
@@ -101,6 +101,10 @@
GCC_REQD+= 3.0
.endif
+.if !empty(USE_LANGUAGES:Mc++11) || !empty(USE_LANGUAGES:Mgnu++11)
+GCC_REQD+= 4.8
+.endif
+
# Only one compiler defined here supports Ada: lang/gcc5-aux
# If the Ada language is requested, force lang/gcc5-aux to be selected
.if !empty(USE_LANGUAGES:Mada)
Home |
Main Index |
Thread Index |
Old Index