pkgsrc-Users archive

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

Re: misc/libreoffice build failure



On Sun, Apr 30, 2017 at 10:31:10AM +0200, Marc Baudoin wrote:
> The config.log file shows:
> g++: error: unrecognized command line option '-std=gnu++14'

You probably want the attached diff (undo recent changes regarding c++
compilation flags affecting libreoffice).
If it doesn't work and libreoffice truly needs a newer compiler,
GCC_REQD will need to be set.
Index: devel/cppunit/buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/devel/cppunit/buildlink3.mk,v
retrieving revision 1.10
diff -u -r1.10 buildlink3.mk
--- devel/cppunit/buildlink3.mk	20 Apr 2017 08:39:03 -0000	1.10
+++ devel/cppunit/buildlink3.mk	30 Apr 2017 17:45:23 -0000
@@ -11,7 +11,4 @@
 BUILDLINK_CPPFLAGS.cppunit+=	-I${BUILDLINK_PREFIX.cppunit}/include/cppunit
 .endif # CPPUNIT_BUILDLINK3_MK
 
-# cppunit enables C++11 so all dependencies must be built the same way
-CXXFLAGS+=		-std=c++11
-
 BUILDLINK_TREE+=	-cppunit
Index: misc/libreoffice/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/misc/libreoffice/Makefile,v
retrieving revision 1.109
diff -u -r1.109 Makefile
--- misc/libreoffice/Makefile	30 Apr 2017 01:21:53 -0000	1.109
+++ misc/libreoffice/Makefile	30 Apr 2017 17:45:48 -0000
@@ -14,9 +14,6 @@
 COMMENT=	Office productivity suite from The Document Foundation
 LICENSE=	gnu-lgpl-v3
 
-# devel/cppunit/buildlink3.mk defined -std=c++11 and build fails
-BUILDLINK_TRANSFORM+=		opt:-std=c++11:-std=gnu++14
-
 SUBST_CLASSES+=			use-bash
 SUBST_STAGE.use-bash=		pre-configure
 SUBST_MESSAGE.use-bash=		Using bash for configure script


Home | Main Index | Thread Index | Old Index