Hi,

This is perhaps a stupid question, but what's the canonical way to
define pthread support for QT based applications ?


I',m working on a some ports that need things like LIBS= ... ${PTHREAD_LIBS}

Now, supposing I write in my Makefile:
.........
GNU_CONFIGURE=  yes
USE_GMAKE=      yes
USE_QT_VER=     3

I see in config.log something like:
configure:5441: g++ -o conftest -g -O2 -I/usr/local/include 
-I/usr/local/include -I/usr/X11R6/include -fno-exceptions -fno-check-new   
-I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H  
-L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib conftest.cc 
-Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/lib - ljpeg  -L/usr/X11R6/lib 
-ltiff -lgdbm -lqt-mt >&5

which fails because it lacks threading support for qt-mt (although the
configure script correctly finds pthread lib)

Now, I see that bsd.kde.mk sets
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} ${QTCPPFLAGS}" LIBS="${QTCFGLIBS}"

and /usr/X11R6/libdata/pkgconfig/qt-mt.pc has some more things,
including thread support:
Libs: -L${libdir} -lqt-mt -L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib 
-laudio -lXt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor 
-lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -pthread
Cflags: -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT  
-I${includedir}


So my questions is: what/where/how should I define in my Makefile to
have threading support ? I don't think I have to override the
{CONFIGURE|MAKE}_ENV for this, so I must be missing something.


Thanks,

-- 
IOnut
Unregistered ;) FreeBSD "user"


_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd

Reply via email to