Subject: Dependencies on bl3fied libraries
To: None <>
From: Mike M. Volokhov <>
List: tech-pkg
Date: 04/20/2004 17:41:15

I'm working on yet another package, and it depends on QT. In my Makefile
I've added:

	.include "../../x11/qt3-libs/"

But at the configure (and at any other stages) a really executed command
is not pass all needed flags to the C compiler.

[*] /build/pkgsrc/wip/djvulibre-gui/work/.buildlink/bin/g++ -o conftest -I/usr/p
kg/include -I/usr/pkg/include/djvulibre -DGLX_GLXEXT_LEGACY -I/usr/include -I/us
r/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include/djvulibre -DGLX_GL
XEXT_LEGACY -I/usr/include -I/usr/pkg/include/freetype2 -pthread -DTHREADMODEL=P
OSIXTHREADS -I/usr/pkg/qt3/include -I/usr/X11R6/include -I/usr/pkg/include -I/us
r/pkg/include/djvulibre -DGLX_GLXEXT_LEGACY -I/usr/include -I/usr/pkg/include/fr
eetype2 -Wl,-R/usr/pkg/qt3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl, <<<
-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/pkg/qt3/lib 
-lqt-mt -L/usr/X11R6/lib -lSM -lICE -lXext -lX11 -lm
<.> /build/pkgsrc/wip/djvulibre-gui/work/.gcc/bin/g++ -o conftest -I/build/pkgsr
c/wip/djvulibre-gui/work/.buildlink/include -I/build/pkgsrc/wip/djvulibre-gui/wo
rk/.buildlink/include/djvulibre -DGLX_GLXEXT_LEGACY -I/build/pkgsrc/wip/djvulibr
e-gui/work/.buildlink/include/freetype2 -pthread -DTHREADMODEL=POSIXTHREADS -I/b
uild/pkgsrc/wip/djvulibre-gui/work/.buildlink/qt3/include -I/build/pkgsrc/wip/dj
vulibre-gui/work/.x11-buildlink/include -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/build/pkgsrc/wip/djvulibre-gui/work/.buildlink/lib -L/build/pkgsr
c/wip/djvulibre-gui/work/.x11-buildlink/lib -L/build/pkgsrc/wip/djvulibre-gui/wo
rk/.buildlink/qt3/lib -lqt-mt -lSM -lICE -lXext -lX11 -lm

In the example below, the buildlink3 wrapper gots a
"-Wl,-R/usr/pkg/qt3/lib" flag (take a look to <<< characters on the
right field), but the executed command don't use it at all. This cause
to disable QT support for given package so as test program execution was
failed (qt-mt shared library not found).

Moreover, all other packages which depends on bl3fied libraries caused
the same problems.

Is this a bug or I have something wrong?

TIA, Mishka.