http://bugzilla.novell.com/show_bug.cgi?id=529921 Summary: "foo-config --libs" shall not output -L/usr/lib(64) Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Documentation AssignedTo: ke@novell.com ReportedBy: koenig@linux.de QAContact: ke@novell.com Found By: --- it's the same from at least suse 9.0 via sles10 to opensuse 11.1, right now it's pcre-config which bugs me -- e.g. on sles10 and 11.1 64 bit: atuin > pcre-config --libs -L/usr/lib64 -lpcre if an autotool configure script uses this information to build LDFLAGS or LIBS for make, it can happen that that "pcre libs" cover an explicit link path for another lib which shall not be linked from the system libs/path but from a lib/path which is explicitly specified. (here: using a newer gcc to build octave-3.2.2 links against system libgfortran and not to the libgfortran of the gcc/gfortran used for linking...) specifying /usr/lib64 or /usr/lib for 32 bit is not necessary because those system lib dirs will be appended to the search path anyway -- but at the *end* of the search order and not at random depending in the sequence of configure tests. CentOS 5 has patches (at least in pcre-6.6-1.1.src.rpm) which remove those "-L/usr/lib{,/64}" entries in *-config script (pcre-config in CentOS 4u4 still does "echo -L/usr/lib64 -lpcre" too). on centos5 I have 11 /usr/bin/*-config scripts and none of them uses "-L/usr/lib..." : os2-centos5u0 > grep L/usr /usr/bin/*-config Binary file /usr/bin/pkg-config matches /usr/bin/xml2-config: if [ "-L${libdir}" = "-L/usr/lib64" ] while on suse 11.1 I get quite some hits out of 40 *-config scripts: os2-suse111 > grep L/usr /usr/bin/*-config /usr/bin/aalib-config: libdirs="-L/usr/lib64 -Wl,-rpath,${exec_prefix}/lib" /usr/bin/aalib-config: libdirs="-L/usr/lib64 -Wl,-rpath,${exec_prefix}/lib" /usr/bin/audiofile-config: libdirs=-L/usr/lib64 /usr/bin/croco-0.6-config: echo -L/usr/lib64 -lcroco-0.6 -lglib-2.0 -lxml2 /usr/bin/ijs-config: libdirs=-L/usr/lib64 /usr/bin/libart2-config: libdirs=-L/usr/lib64 /usr/bin/libtasn1-config:tasn1_libs="-L/usr/lib64 -ltasn1 " /usr/bin/libusb-config: echo -L/usr/lib64 -lusb /usr/bin/ncurses6-config: echo -L/usr/lib64/ncurses6 -lncurses /usr/bin/ncursesw6-config: echo -L/usr/lib64/ncurses6 -lncursesw /usr/bin/pcre-config: echo -L/usr/lib64$libR -lpcreposix -lpcre /usr/bin/pcre-config: echo -L/usr/lib64$libR -lpcre Binary file /usr/bin/pkg-config matches /usr/bin/sdl-config: echo -L/usr/lib64 -lSDL -lpthread /usr/bin/sdl-config: echo -L/usr/lib64 -lSDL -lpthread /usr/bin/wx-config:ldlibs_adv="-L/usr/lib64 -lSDL -lpthread" /usr/bin/wx-config: echo $_ldflags "-pthread -L/usr/lib64 " $_rpath $wx_libs "" /usr/bin/xdelta-config: libdirs=-L/usr/lib64 /usr/bin/xdelta-config: if test $i != -L/usr/lib64 ; then /usr/bin/xml2-config: if [ "-L${libdir}" = "-L/usr/lib" -o "-L${libdir}" = "-L/usr/lib64" ] please get rid of those -L and -Wl,-rpath, for system paths (/usr/lib* and /lib* too for rpath!). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.