[vlc-devel] [PATCH] contrib: set the AR variable explicitly in CMake
Steve Lhomme
robux4 at ycbcr.xyz
Wed Nov 21 09:35:03 CET 2018
It doesn't inherit it properly in MSys2 (at least) and fails to build.
It shouldn't cause any problems on system where it already works.
---
contrib/src/main.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index d3616b5a23..f50eec8a03 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -513,7 +513,6 @@ ifdef HAVE_DARWIN_OS
echo "set(CMAKE_C_FLAGS \"$(CFLAGS) $(EXTRA_CFLAGS)\")" >> $@
echo "set(CMAKE_CXX_FLAGS \"$(CFLAGS) $(EXTRA_CXXFLAGS)\")" >> $@
echo "set(CMAKE_LD_FLAGS \"$(LDFLAGS)\")" >> $@
- echo "set(CMAKE_AR ar CACHE FILEPATH "Archiver")" >> $@
ifdef HAVE_IOS
echo "set(CMAKE_OSX_SYSROOT $(IOS_SDK))" >> $@
else
@@ -533,6 +532,7 @@ endif
echo "set(CMAKE_CXX_COMPILER $(CXX))" >> $@
echo "set(CMAKE_FIND_ROOT_PATH $(PREFIX))" >> $@
echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> $@
+ echo "set(CMAKE_AR $(AR) CACHE FILEPATH Archiver)" >> $@
ifdef HAVE_CROSS_COMPILE
echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> $@
echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> $@
--
2.17.1
More information about the vlc-devel
mailing list