contrib: matroska: fix passing flags to to compiler
authorSteve Lhomme <robux4@ycbcr.xyz>
Thu, 17 May 2018 10:35:08 +0000 (12:35 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Thu, 17 May 2018 11:00:45 +0000 (13:00 +0200)
Given it wasn't use maybe it's not needed anymore with the switch to cmake.

contrib/src/matroska/rules.mak

index 6c2b209..87ea3f4 100644 (file)
@@ -21,9 +21,9 @@ libmatroska: libmatroska-$(MATROSKA_VERSION).tar.xz .sum-matroska
        $(call pkg_static,"libmatroska.pc.in")
        $(MOVE)
 
-MATROSKA_EXTRA_FLAGS = CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
+MATROSKA_CXXFLAGS := $(CXXFLAGS) -fvisibility=hidden
 
 .matroska: libmatroska toolchain.cmake
-       cd $< && $(HOSTVARS_PIC) $(CMAKE) -DBUILD_SHARED_LIBS=OFF
+       cd $< && $(HOSTVARS_PIC) CXXFLAGS="$(MATROSKA_CXXFLAGS)" $(CMAKE) -DBUILD_SHARED_LIBS=OFF
        cd $< && $(MAKE) install
        touch $@