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 577711 - cross compile check for g++ broken
cross compile check for g++ broken
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.20.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-04-02 12:29 UTC by Marcus Brinkmann
Modified: 2009-11-03 13:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-Use-AC_CHECK_TOOLS-to-find-CXX-compiler.patch (859 bytes, patch)
2009-04-19 15:25 UTC, Hib Eris
none Details | Review

Description Marcus Brinkmann 2009-04-02 12:29:22 UTC
Please describe the problem:
The cross-compile check for c++ is broken.  configure is picking up the build system's c++, which leads to a half-broken libtool file.  In particular, libtool's search path for system libraries is broken and points to the system lib dirs.  The result is that libraries like ws2_32 are not found, and hell breaks loose.

I was able to work around it by configuring with CCC=i586-mingw32msvc-g++.  Then everything went ok.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Hib Eris 2009-04-19 15:25:09 UTC
Created attachment 132903 [details] [review]
0001-Use-AC_CHECK_TOOLS-to-find-CXX-compiler.patch

I can confirm this issue. It may have something to do with the libtool version that is used, as this issue was not present in 2.18.2, but is in 2.18.4 and HEAD.

Attached patch will fix it by properly searching for a C++ cross compiler.
Comment 2 Tor Lillqvist 2009-11-03 13:05:03 UTC
Looks good, but as such is not specific to Win32, so changing component.
Comment 3 Tor Lillqvist 2009-11-03 13:09:44 UTC
Pushed to master and glib-2-22.