[bt-devel] qt static errors

Martin Gruner bt-devel@crosswire.org
Tue, 22 May 2001 20:16:36 +0200


> Ok, this is the current qt line in the makefile.
> LIB_QT = -lqt $(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)
>
> I change it to this with a patch
> LIB_QT = -static -lqt $(LIBPNG) $(LIBJPEG) -static -lXext $(LIB_X11)
> $(LIBSM)

Shouldn't it rather be

LIB_QT = -Wl,-Bstatic -lqt $(LIBPNG) $(LIBJPEG) -Wl,-Bdynamic -lXext 
$(LIB_X11) $(LIBSM)
?

As I have understood the -Wl argument to g++ will pass the argument following 
to the linker. See man gcc and man ld.

X should be linked dynamically, right?
Qt should not be build with X statically linked in, too.
I'm just guessing.  ;)

Martin