mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Search pkg-config system libs/cflags.
We need to search the system paths as well from pkg-config for some packages to be found properly.
This commit is contained in:
parent
a2b74b04eb
commit
9ea4624704
4
setup.py
4
setup.py
|
@ -252,8 +252,8 @@ def _cmd_exists(cmd):
|
|||
def _pkg_config(name):
|
||||
try:
|
||||
command = os.environ.get("PKG_CONFIG", "pkg-config")
|
||||
command_libs = [command, "--libs-only-L", name]
|
||||
command_cflags = [command, "--cflags-only-I", name]
|
||||
command_libs = [command, "--libs-only-L", "--keep-system-libs", name]
|
||||
command_cflags = [command, "--cflags-only-I", "--keep-system-cflags", name]
|
||||
if not DEBUG:
|
||||
command_libs.append("--silence-errors")
|
||||
command_cflags.append("--silence-errors")
|
||||
|
|
Loading…
Reference in New Issue
Block a user