mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-02-05 17:00:37 +01:00
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:
parent
5b463c927b
commit
72e1346d04
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
])
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue