After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 526247 - Actually build dlls when cross-compiling with mingw32
Actually build dlls when cross-compiling with mingw32
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Windows
: Normal normal
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-04 21:59 UTC by Damien Lespiau
Modified: 2008-04-06 08:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against gstreamer HEAD (350 bytes, patch)
2008-04-04 22:00 UTC, Damien Lespiau
committed Details | Review

Description Damien Lespiau 2008-04-04 21:59:20 UTC
As a matter of fact, cross-compiling GStreamer does not produce dlls in current HEAD. libtool whines with awful messages like this one:

*** Warning: linker path does not have real file for library -lws2_32.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libws2_32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: .../lib/libws2_32.a

Adding AC_LIBTOOL_WIN32_DLL to configure.ac solves this issue.
Comment 1 Damien Lespiau 2008-04-04 22:00:48 UTC
Created attachment 108641 [details] [review]
Patch against gstreamer HEAD
Comment 2 Sebastian Dröge (slomo) 2008-04-05 10:59:10 UTC
This patch is also necessary for all other modules, right? Or only the modules that build libraries (i.e. base and bad) but not the ones which only build plugins?
Comment 3 Damien Lespiau 2008-04-05 12:33:09 UTC
Yes, this patch is also necessary for other modules. AFAIK, if you want to build a DLL with libtool, you must add AC_LIBTOOL_WIN32_DLL.

What is the preferred way to post "pan-moules" patches ? one bug by module ? a bug  and 5 patches ? a bug, a patch and GStreamer developers do the remaining work :p ?

 
Comment 4 Sebastian Dröge (slomo) 2008-04-06 08:52:34 UTC
I've committed it to all modules, thanks :)

2008-04-06  Sebastian Dröge  <slomo@circular-chaos.org>

	Patch by: Damien Lespiau <damien dot lespiau at gmail dot com>

	* configure.ac:
	Actually build dlls when cross-compiling with mingw32.
	Fixes bug #526247.