[rtmpdump] [PATCH 2/4] Use -shared as ldflag for creating a DLL

Martin Storsjo martin at martin.st
Sat Apr 30 13:29:59 CEST 2011


Without this, the DLL build fails with this error message:
libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `_WinMain at 16'
---
 librtmp/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/librtmp/Makefile b/librtmp/Makefile
index 2143927..a5040f6 100644
--- a/librtmp/Makefile
+++ b/librtmp/Makefile
@@ -54,7 +54,7 @@ SODIR=$(SODIR_$(SYS))
 SO_LDFLAGS_posix=-shared -Wl,-soname,$@
 SO_LDFLAGS_darwin=-dynamiclib -flat_namespace -undefined suppress -fno-common \
 	-headerpad_max_install_names
-SO_LDFLAGS_mingw=
+SO_LDFLAGS_mingw=-shared
 SO_LDFLAGS=$(SO_LDFLAGS_$(SYS))
 
 SHARED=yes
-- 
1.7.3.1



More information about the rtmpdump mailing list