[Qt-interest] Adding to QMAKE_LFLAGS in Makefile

Paul Floyd paulf at free.fr
Thu Jan 8 22:00:44 CET 2009


Albert Chin wrote:
> While building Qt 4.4.3 with GCC, I need to add the GCC runtime path to
> LFLAGS so the G++ libstdc++.so library is found on the platform I'm
> building on. How do I do this?
> 
> On Solaris 10/SPARC:
>   $ bzip2 -dc qt-x11-opensource-src-4.4.3.tar.bz2 | tar xf -
>   $ cd qt-x11-opensource-src-4.4.3
>   $ PATH=/opt/fsw/gcc42/bin:$PATH bash ./configure \
>   -R /opt/fsw/gcc42r/lib -verbose -release -shared \
>   -platform solaris-g++
>   ...
> 
> Looking at qmake/Makefile I see:
>   QMAKE_LFLAGS_1 = 
>   QMAKE_LFLAGS = $(QMAKE_LFLAGS_1)
> 
> How do I add -R/opt/fsw/gcc42r/lib to QMAKE_LFLAGS_1 or QMAKE_LFLAGS?

Hi

The hard coding way to do this is to modify 
mkspecs/solaris-g++/qmake.conf in the Qt source directory before running 
configure and make. This will set the option not only for building Qt 
itself, but also for all projects that you build with it.

A+
Paul




More information about the Qt-interest-old mailing list