[vlc-devel] [PATCH 6/6] contrib: Force building mfx and projectM in C++98 mode

Martin Storsjö martin at martin.st
Thu Dec 28 21:58:33 CET 2017


The latest trunk version of clang (upcoming clang 6.0) has changed
the default to C++14, just like GCC 6.
---
 contrib/src/mfx/rules.mak      | 2 +-
 contrib/src/projectM/rules.mak | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/src/mfx/rules.mak b/contrib/src/mfx/rules.mak
index 13b1423..165ff86 100644
--- a/contrib/src/mfx/rules.mak
+++ b/contrib/src/mfx/rules.mak
@@ -23,6 +23,6 @@ mfx: mfx-$(MFX_GITHASH).tar.xz .sum-mfx
 	$(MOVE)
 
 .mfx: mfx
-	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CXXFLAGS="-std=c++98 -O2"
 	cd $< && $(MAKE) install
 	touch $@
diff --git a/contrib/src/projectM/rules.mak b/contrib/src/projectM/rules.mak
index 25e8dc4..a9e7b29 100644
--- a/contrib/src/projectM/rules.mak
+++ b/contrib/src/projectM/rules.mak
@@ -35,6 +35,7 @@ DEPS_projectM = glew $(DEPS_glew)
 		-DUSE_FTGL:BOOL=OFF \
 		-DINCLUDE-PROJECTM-PULSEAUDIO:BOOL=OFF \
 		-DINCLUDE-PROJECTM-QT:BOOL=OFF \
+		-DCMAKE_CXX_STANDARD=98 \
 		-DBUILD_PROJECTM_STATIC:BOOL=ON .
 	cd $< && $(MAKE) install
 	-cd $<; cp Renderer/libRenderer.a MilkdropPresetFactory/libMilkdropPresetFactory.a $(PREFIX)/lib
-- 
2.7.4



More information about the vlc-devel mailing list