Add root /lib* directories to the default -L paths

Avoids outputting -L/lib, which the linker will search in implicitly
like -L/usr/lib.

Freedesktop #58363 (https://bugs.freedesktop.org/show_bug.cgi?id=58363)
This commit is contained in:
Dan Nicholson 2012-12-16 09:18:48 -08:00
parent 5b463c927b
commit 72e1346d04
2 changed files with 3 additions and 3 deletions

View file

@ -75,10 +75,10 @@ AC_ARG_WITH([system_library_path],
[
case "$libdir" in
*lib64)
system_library_path="/usr/lib64:/usr/lib"
system_library_path="/usr/lib64:/lib64:/usr/lib:/lib"
;;
*)
system_library_path="/usr/lib"
system_library_path="/usr/lib:/lib"
;;
esac
])

View file

@ -269,7 +269,7 @@ disables said behavior.
Don't strip -I/usr/include out of cflags.
.TP
.I "PKG_CONFIG_ALLOW_SYSTEM_LIBS"
Don't strip -L/usr/lib out of libs
Don't strip -L/usr/lib or -L/lib out of libs.
.TP
.I "PKG_CONFIG_SYSROOT_DIR"
Modify -I and -L to use the directories located in target sysroot.