Commit 28a96b9b authored by Martin Storsjö's avatar Martin Storsjö

contrib: live555: Don't try to use $(LD) to create static libraries on MinGW, use $(AR)

This fixes building with llvm-mingw.
parent 44736e0a
diff -urN live555-orig/config.mingw live555/config.mingw
--- live555-orig/config.mingw 2018-02-26 11:28:41.446443807 +0200
+++ live555/config.mingw 2018-02-26 11:29:02.453948892 +0200
@@ -9,8 +9,8 @@
LINK = $(CXX) -o
LINK_OPTS = -L.
CONSOLE_LINK_OPTS = $(LINK_OPTS)
-LIBRARY_LINK = $(LD) -o
-LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
+LIBRARY_LINK = $(AR) cr
+LIBRARY_LINK_OPTS =
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION = -lws2_32
LIBS_FOR_GUI_APPLICATION = -lws2_32
......@@ -76,6 +76,8 @@ endif
$(APPLY) $(SRC)/live555/add-pkgconfig-file.patch
# Expose Server:
$(APPLY) $(SRC)/live555/expose_server_string.patch
# Fix creating static libs on mingw
$(APPLY) $(SRC)/live555/mingw-static-libs.patch
mv live.$(LIVE555_VERSION) $@ && touch $@
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment