[vlc-commits] contrib: don't build with .lib suffix on Windows with CMake
Steve Lhomme
git at videolan.org
Tue Mar 5 16:49:26 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar 5 16:48:15 2019 +0100| [4613b5a1c187b1946177b0e6babcec352c61b656] | committer: Steve Lhomme
contrib: don't build with .lib suffix on Windows with CMake
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4613b5a1c187b1946177b0e6babcec352c61b656
---
contrib/src/main.mak | 3 +++
1 file changed, 3 insertions(+)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b4610bbc02..81199e711e 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -365,6 +365,9 @@ RECONF = mkdir -p -- $(PREFIX)/share/aclocal && \
cd $< && $(AUTORECONF) -fiv $(ACLOCAL_AMFLAGS)
CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \
-DCMAKE_INSTALL_PREFIX=$(PREFIX) $(CMAKE_GENERATOR) -DCMAKE_DEBUG_POSTFIX:STRING=
+ifeq ($(findstring mingw32,$(BUILD)),mingw32)
+CMAKE += -DCMAKE_LINK_LIBRARY_SUFFIX:STRING=.a
+endif
ifeq ($(V),1)
CMAKE += -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
More information about the vlc-commits
mailing list