From: Ranjit M. <rm...@ho...> - 2002-09-19 06:45:53
|
Hi, BTW, the libstdc++.a created by the cross-compiler is VERY BIG (almost 29MB) compared to the 998KB of the "native" (official) distribution. The usual suspect in these cases is debug information - so I specified "-g0 -O2 -Wl,-s" for CFLAGS/CXXFLAGS, "-s" for LDFLAGS, etc. but it still remains of the same size. I also pass these flags explicitly to make (apart from defining them as exported environment variables) like this: make CFLAGS='-g0 -O2 -Wl,-s' CXXFLAGS='-g0 -O2 -Wl,-s' LDFLAGS='-s' I don't seem to be doing anything different than Danny's "gcc-build.sh" script. ANY idea why it behaves like this? The native compiler on the Solaris box is GCC 3.1 and binutils is 2.11.2 downloaded from www.sunfreeware.com. FWIW, I have also been able create a linux-hosted MinGW cross-compiler on my home PC (Slackware 8.1), but that is also plagued by the SAME issue! Thanks for your help in advance. Sincerely Yours, Ranjit Mathew. Ranjit Mathew wrote: > Hi, > > Seeing a 4-way Sun E250 server lying idle here in > my office, I was suddenly filled with the urge to put > it to some use - so I decided to build a MinGW cross > compiler on it. ;-) > > Well, I'm happy to report that I now have a > sparc-sun-solaris2.8 hosted cross compiler (C and C++) > for MinGW using GCC3.2, binutils 2.13, mingw-runtime 2.2 > and w32api 2.0. > > It built without much of a problem - surely due to the > great work by the GCC, binutils and MinGW guys! Thanks > a tonne guys! > > (And also the guys at www.sunfreeware.com for making great > GNU tools available on Solaris!) > > It is really neat to see Win32 applications being built > on a Solaris box - for large programs, the build time is > considerably reduced when you have a 4-way Sun server at > the job! > > Sincerely Yours, > Ranjit Mathew. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: AMD - Your access to the experts > on Hammer Technology! Open Source & Linux Developers, register now > for the AMD Developer Symposium. Code: EX8664 > http://www.developwithamd.com/developerlab > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |