Hi Jeremy, * Jeremy Teo wrote on Wed, Jun 29, 2005 at 01:06:34PM CEST: > > I came across this error with regards to the generated libtool for Mono > 1.1.8.1 > > Version of libtool is as shown below: > > ltmain.sh (GNU libtool) 1.5.14 (1.1220.2.195 2005/02/12 12:12:33)
Hmm. The patch you provide does not fit libtool.m4 from 1.5.14 exactly. Did mono patch the libtool.m4 they ship? > The generated libtool invokes gcc with the flag "-shared" in order to > generate shared libraries. > > On Solaris, the linker used is the system linker, "ld". The proper > flag to pass to gcc is "Wl,-G". That's weird. How does the failure look like without the patch? (Maybe [1] is an effect of this?) Which GCC version? Note right around the first hunk of your patch Libtool explicitly distinguishes between gcc-2.7 (for which -G seemed necessary) and other GCC versions. Note the second hunk of your patch applies to the GNU ld case. That looks wrong to me. > I've patched my libtool.m4 accordingly, and the patch is included > below. I appreciate any feedback if what I've done is correct and > portable. Can't decide that yet. Even if it turns out to work fine on your system, there are a lot of different combinations (Solaris version, GCC version, linker used) to test for potential breakage. It would be good to know exactly what caused our code to break. Please also note that Libtool 1.5.18 contains a few Solaris-related fixes. They /should/ be independent of this issue, at a glance, but it could help to make sure. Regards, Ralf [1] http://lists.gnu.org/archive/html/libtool/2005-06/msg00204.html _______________________________________________ Bug-libtool mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-libtool
