[vlc-commits] contrib: Remove duplicated flags in CMake toolchain file

Marvin Scholz git at videolan.org
Wed Jun 19 12:58:31 CEST 2019


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Jun 19 11:34:48 2019 +0200| [bddf26b2d32a04d887925376d00d5919cd351901] | committer: Marvin Scholz

contrib: Remove duplicated flags in CMake toolchain file

The EXTRA_* flags are already added to CFLAGS and CXXFLAGS before,
so adding them again here would cause duplicated flags.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bddf26b2d32a04d887925376d00d5919cd351901
---

 contrib/src/main.mak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 417cb22816..7ce175316d 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -548,8 +548,8 @@ ifdef HAVE_CROSS_COMPILE
 endif
 endif
 ifdef HAVE_DARWIN_OS
-	echo "set(CMAKE_C_FLAGS \"$(CFLAGS) $(EXTRA_CFLAGS)\")" >> $@
-	echo "set(CMAKE_CXX_FLAGS \"$(CXXFLAGS) $(EXTRA_CXXFLAGS)\")" >> $@
+	echo "set(CMAKE_C_FLAGS \"$(CFLAGS)\")" >> $@
+	echo "set(CMAKE_CXX_FLAGS \"$(CXXFLAGS)\")" >> $@
 	echo "set(CMAKE_LD_FLAGS \"$(LDFLAGS)\")" >> $@
 	echo "set(CMAKE_AR ar CACHE FILEPATH "Archiver")" >> $@
 ifdef HAVE_IOS



More information about the vlc-commits mailing list