1From cd09b6f68aa49c72e9a9bb0765e8c666238a7b7e Mon Sep 17 00:00:00 2001 2From: Leon Anavi <leon.anavi@konsulko.com> 3Date: Mon, 11 Jan 2021 13:25:12 +0000 4Subject: [PATCH] support cross compiling 5 6Upstream-Status: Inappropriate [oe specific] 7 8Suggested-by: Hongxu Jia <hongxu.jia@windriver.com> 9Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> 10--- 11 setup.py | 6 +++--- 12 1 file changed, 3 insertions(+), 3 deletions(-) 13 14diff --git a/setup.py b/setup.py 15index cbc2641c..302bc6e7 100755 16--- a/setup.py 17+++ b/setup.py 18@@ -123,7 +123,7 @@ _LIB_IMAGING = ( 19 "codec_fd", 20 ) 21 22-DEBUG = False 23+DEBUG = True 24 25 26 class DependencyException(Exception): 27@@ -408,12 +408,12 @@ class pil_build_ext(build_ext): 28 _add_directory(library_dirs, match.group(1)) 29 30 # include, rpath, if set as environment variables: 31- for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE"): 32+ for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE", "STAGING_INCDIR"): 33 if k in os.environ: 34 for d in os.environ[k].split(os.path.pathsep): 35 _add_directory(include_dirs, d) 36 37- for k in ("LD_RUN_PATH", "LIBRARY_PATH", "LIB"): 38+ for k in ("LD_RUN_PATH", "LIBRARY_PATH", "LIB", "STAGING_LIBDIR"): 39 if k in os.environ: 40 for d in os.environ[k].split(os.path.pathsep): 41 _add_directory(library_dirs, d) 42-- 432.17.1 44 45