[rtmpdump] Link OpenSSL statically for Win32
David Woodhouse
dwmw2 at infradead.org
Sun Apr 18 20:28:53 CEST 2010
Windows is painful enough to deal with already, without shipping
"precompiled" binaries of rtmpdump which require you to fetch OpenSSL
separately. Especially given that OpenSSL breaks binary compatibility so
often.
Wouldn't it be much nicer to build it with -static, so that people who
download the binaries can just run them?
This builds a useful binary (http://david.woodhou.se/rtmpdump.exe) on
Fedora 12 with the mingw32-zlib-static and mingw32-openssl-static
development packages installed.
Index: Makefile
===================================================================
--- Makefile (revision 432)
+++ Makefile (working copy)
@@ -37,7 +37,7 @@
@$(MAKE) $(MAKEFLAGS) MF="$(MAKEFLAGS)" progs
mingw:
- @$(MAKE) CROSS_COMPILE=mingw32- LIBS="$(LIBS) -lws2_32 -lwinmm -lgdi32" THREADLIB= EXT=.exe $(MAKEFLAGS) progs
+ @$(MAKE) CROSS_COMPILE=mingw32- LIBS="-static $(LIBS) -lws2_32 -lwinmm -lgdi32" THREADLIB= EXT=.exe $(MAKEFLAGS) progs
cygwin:
@$(MAKE) XCFLAGS=-static XLDFLAGS="-static-libgcc -static" EXT=.exe $(MAKEFLAGS) progs
--
dwmw2
More information about the rtmpdump
mailing list