mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-08 11:19:18 +02: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
|
case "$libdir" in
|
||||||
*lib64)
|
*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
|
esac
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ disables said behavior.
|
||||||
Don't strip -I/usr/include out of cflags.
|
Don't strip -I/usr/include out of cflags.
|
||||||
.TP
|
.TP
|
||||||
.I "PKG_CONFIG_ALLOW_SYSTEM_LIBS"
|
.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
|
.TP
|
||||||
.I "PKG_CONFIG_SYSROOT_DIR"
|
.I "PKG_CONFIG_SYSROOT_DIR"
|
||||||
Modify -I and -L to use the directories located in target sysroot.
|
Modify -I and -L to use the directories located in target sysroot.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue