Thanks for the explanation! I don't know much about the Qt build system
except that it looks scary to me :)
I currently use a workaround to extract the necessary information from
the .prl files. The following works for the QtOpenGL library with a
configure script that uses pkg-config:
MCEPFX=/path/to/mingw-cross-env/usr/i686-pc-mingw32
QTOPENGLLIBS="`grep QMAKE_PRL_LIBS "$MCEPFX"/lib/QtOpenGL.prl | sed -e
's/QMAKE_PRL_LIBS = //'`"
./configure --host=i686-pc-mingw32 \
libqtopengl_CFLAGS="-I$MCEPFX/include/Qt -I$MCEPFX/include/QtCore
-I$MCEPFX/include/QtGui -I$MCEPFX/include/QtOpenGL" \
libqtopengl_LIBS="-L$MCEPFX/lib -mwindows -lQtOpenGL $QTOPENGLLIBS"
Not nice, but it works for now.