From c0d4fbb1f5e64581813e8c8dbfd8e8b8d0a47483 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 28 Oct 2023 10:06:43 +0000 Subject: [PATCH] Makefile.mk: fix `-rtmp` option for non-Windows [ci skip] --- lib/Makefile.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Makefile.mk b/lib/Makefile.mk index 5071600b59..1513cafef9 100644 --- a/lib/Makefile.mk +++ b/lib/Makefile.mk @@ -145,7 +145,10 @@ ifneq ($(findstring -rtmp,$(CFG)),) CPPFLAGS += -DUSE_LIBRTMP CPPFLAGS += -I"$(LIBRTMP_PATH)" _LDFLAGS += -L"$(LIBRTMP_PATH)/librtmp" - _LIBS += -lrtmp -lwinmm + _LIBS += -lrtmp + ifdef WIN32 + _LIBS += -lwinmm + endif ZLIB := 1 endif