linking with build libs instead of system

Elan Ruusamäe glen at delfi.ee
Thu Sep 14 20:44:46 CEST 2006


how to prevent program being built linking with currently built libs isntead of system? (and not using buildconflicts)

it's qmake used there.

make[1]: Entering directory `/home/builder/rpm/pld/BUILD/mythtv-0.20/programs'
cd mythtv && make -f Makefile
make[2]: Entering directory `/home/builder/rpm/pld/BUILD/mythtv-0.20/programs/mythtv'
amd64-pld-linux-g++ -Wl,-rpath,/usr/lib64 -o mythtv main.o    -L/usr/lib64 -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia -lmythtv-0.20 -lmythavformat-0.20 -lmythavutil-0.20 -lmythavcodec-0.20 -lmythfreemheg-0.20 -lmythupnp-0.20 -lmythlivemedia-0.20 -lmyth-0.20 -lmythui-0.20 -lfreetype -lmp3lame -lasound -L/usr/lib64 -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/X11R6/lib64 -L/usr/X11R6/lib64 -lXinerama -lXv -lX11 -lXext -lXxf86vm -lXvMCW -lXvMC -lGL -lGLU -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm -lpthread
/usr/lib64/libmythavcodec-0.20.so: undefined reference to `ff_cavs_find_frame_end'
collect2: ld returned 1 exit status
make[2]: *** [mythtv] Error 1
make[2]: Leaving directory `/home/builder/rpm/pld/BUILD/mythtv-0.20/programs/mythtv'
make[1]: *** [sub-mythtv] Error 2
make[1]: Leaving directory `/home/builder/rpm/pld/BUILD/mythtv-0.20/programs'
make: *** [sub-programs] Error 2
builder at haarber-amd64 BUILD/mythtv-0.20 $

i understand all the -L/usr/lib64 should be removed? and better also -rpath?

and i believe artsc-config should be patched not to include the -L/usr/lib64?

$ artsc-config --libs
-L/usr/lib64 -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0

-- 
glen


More information about the pld-devel-en mailing list