[vlc-commits] contrib: don't build with .lib suffix on Windows with CMake

Steve Lhomme git at videolan.org
Thu Jun 18 18:31:47 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar  5 16:48:15 2019 +0100| [c945eff190dfb9a35aa47cade0d74e7166d7419c] | committer: Steve Lhomme

contrib: don't build with .lib suffix on Windows with CMake

(cherry picked from commit 4613b5a1c187b1946177b0e6babcec352c61b656) (rebased)

rebased:
- this branch already had Meson handling in the file

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

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

 contrib/src/main.mak | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 6995354f36..e60af87bef 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -374,6 +374,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
 
 MESONFLAGS = --default-library static --prefix "$(PREFIX)" --backend ninja \
 	-Dlibdir=lib



More information about the vlc-commits mailing list