pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Linking with debug version of system libraries



Hi,

I'm trying to debug a package (x11/qt4-qdbus) that hangs after calling exit.  
In order to make progress I'm thinking I need to link it with libpthread_dbg.  
Is there a standard pkgsrc way of achieving this?  I attempted to add 
PKG_DEFAULT_OPTIONS+=debug but it looks like I still get the standard 
libraries:

libtool --silent --mode=link 
c++ -ggdb -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
 -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib
 -L/usr/pkgsrc/x11/qt4-qdbus/work.i386/qt-x11-opensource-src-4.3.3/lib
 -fno-exceptions -Wl,-R/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib 
-Wl,-R/usr/pkg/lib
 -Wl,-R/usr/lib -Wl,-R/usr/pkg/qt4/lib -o ../../../../bin/qdbusviewer
 .obj/debug-shared/qdbusviewer.lo .obj/debug-shared/qdbusmodel.lo
 .obj/debug-shared/propertydialog.lo .obj/debug-shared/main.lo
 .obj/debug-shared/moc_qdbusviewer.lo .obj/debug-shared/moc_qdbusmodel.lo
 .obj/debug-shared/moc_propertydialog.lo .obj/debug-shared/qrc_qdbusviewer.lo
 -L/usr/pkg/lib -L/usr/lib -L/usr/pkg/qt4/lib
 -L/usr/pkgsrc/x11/qt4-qdbus/work.i386/qt-x11-opensource-src-4.3.3/lib
 -lQtDBus -L/usr/pkg/lib -L/usr/lib -L/usr/pkg/qt4/lib
 -L/usr/pkgsrc/x11/qt4-qdbus/work.i386/qt-x11-opensource-src-4.3.3/lib 
-Wl,-R/usr/pkg/lib
 -ldbus-1 -lpthread -pthread -pthread -pthread -pthread -pthread -pthread 
-pthread -pthread -pthread
 -lQtXml -pthread -pthread -pthread -lQtGui -lpng -lSM -lICE -pthread -pthread 
-pthread -lXrender
 -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig
 -lXext -lX11 -lQtCore -lz -lm -pthread -pthread

This is on NetBSD current i386.

Thanks,

Sverre



Home | Main Index | Thread Index | Old Index