> > It would be great if you'd re-check everything, based on the current
> > version 471 (changeset bf5c51b76a90).
> >
> Open Solaris builds the native tools, but is failing at the cross build, in
> roughly the same place as freebsd and osx. Adding a "-platform solaris-g++"
> option to configure allows the build to continue, but similar respective
> changes don't work for the other platforms. It's strange, solaris is trying
> to use CC without the option and uses i686-pc-mingw32-g++ when it's present,
> the other two use g++ regardless. I've attached the solaris log.
This must be a cross-platform bug in their hand-written ./configure
script. We need further research on that.
> As an aside, where/what is CC ? I can't find a file, link, alias, or env
> variable for it on freebsd or osx, but 'which CC' always returns
> /usr/bin/CC.
Maybe it's really the name of C compiler in Solaris? I don't know,
but Qt's "mkspecs/solaris-cc/qmake.conf" really contains lines like:
QMAKE_CXX = CC
...
QMAKE_LINK = CC
...
However, that still doesn't explain why these settings are used for
cross compiling.
Adding the same change you made for the native build allows the open solaris build to complete successfully.
diff -r bf5c51b76a90 src/
qt.mk--- a/src/
qt.mk Tue Oct 06 14:08:28 2009 +0200
+++ b/src/
qt.mk Wed Oct 07 20:43:42 2009 +1100
@@ -42,6 +42,7 @@
# Native, unpatched build of Qt for moc, rcc, uic and qmake
cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,qt)
+ $(SED) 's,PLATFORM=solaris-cc$$,PLATFORM=solaris-g++,' -i '$(1)'/configure
mv '$(1)/$(qt_SUBDIR)' '$(1).native'
$(SED) 's,PLATFORM_X11=yes,PLATFORM_X11=no,' -i '$(1)'.native/configure
$(SED) 's,PLATFORM=solaris-cc$$,PLATFORM=solaris-g++,' -i '$(1)'.native/configure
Sorry, my mistake, I forgot to revert before updating.