[vlc-devel] [PATCH] Fix module linkage on Windows
Pierre Ynard
linkfanel at yahoo.fr
Wed Oct 22 11:23:27 CEST 2008
Libtool does want the -no-undefined flag to build the DDLs. Re-add it,
and add the similar logic for the WinCE case.
diff --git a/modules/common.am b/modules/common.am
index ec9783e..23d6834 100644
--- a/modules/common.am
+++ b/modules/common.am
@@ -25,6 +25,12 @@ AM_LDFLAGS = -rpath '$(libvlcdir)' \
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@`
if HAVE_WIN32
# Windows does not support undefined symbols
+AM_LDFLAGS += -no-undefined
+AM_LIBADD += $(LTLIBVLCCORE)
+endif
+if HAVE_WINCE
+# Neither does Windows CE
+AM_LDFLAGS += -no-undefined
AM_LIBADD += $(LTLIBVLCCORE)
endif
Regards,
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list