blob: e4ba35b88657112b263f1bb1f0a7c19ffc7c9030 [file] [log] [blame]
Andrew Geisslereef63862021-01-29 15:58:13 -06001From cd09b6f68aa49c72e9a9bb0765e8c666238a7b7e Mon Sep 17 00:00:00 2001
2From: Leon Anavi <leon.anavi@konsulko.com>
3Date: Mon, 11 Jan 2021 13:25:12 +0000
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] support cross compiling
5
6Upstream-Status: Inappropriate [oe specific]
7
Andrew Geisslereef63862021-01-29 15:58:13 -06008Suggested-by: Hongxu Jia <hongxu.jia@windriver.com>
9Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Brad Bishop19323692019-04-05 15:28:33 -040010---
Andrew Geisslereef63862021-01-29 15:58:13 -060011 setup.py | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
Brad Bishop19323692019-04-05 15:28:33 -040013
14diff --git a/setup.py b/setup.py
Andrew Geisslereef63862021-01-29 15:58:13 -060015index cbc2641c..302bc6e7 100755
Brad Bishop19323692019-04-05 15:28:33 -040016--- a/setup.py
17+++ b/setup.py
Andrew Geisslereef63862021-01-29 15:58:13 -060018@@ -123,7 +123,7 @@ _LIB_IMAGING = (
Brad Bishop26bdd442019-08-16 17:08:17 -040019 "codec_fd",
20 )
Brad Bishop19323692019-04-05 15:28:33 -040021
22-DEBUG = False
23+DEBUG = True
24
25
26 class DependencyException(Exception):
Andrew Geisslereef63862021-01-29 15:58:13 -060027@@ -408,12 +408,12 @@ class pil_build_ext(build_ext):
Brad Bishop19323692019-04-05 15:28:33 -040028 _add_directory(library_dirs, match.group(1))
29
30 # include, rpath, if set as environment variables:
Brad Bishop26bdd442019-08-16 17:08:17 -040031- for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE"):
Andrew Geisslereef63862021-01-29 15:58:13 -060032+ for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE", "STAGING_INCDIR"):
Brad Bishop19323692019-04-05 15:28:33 -040033 if k in os.environ:
34 for d in os.environ[k].split(os.path.pathsep):
35 _add_directory(include_dirs, d)
36
Brad Bishop26bdd442019-08-16 17:08:17 -040037- for k in ("LD_RUN_PATH", "LIBRARY_PATH", "LIB"):
Andrew Geisslereef63862021-01-29 15:58:13 -060038+ for k in ("LD_RUN_PATH", "LIBRARY_PATH", "LIB", "STAGING_LIBDIR"):
Brad Bishop19323692019-04-05 15:28:33 -040039 if k in os.environ:
40 for d in os.environ[k].split(os.path.pathsep):
41 _add_directory(library_dirs, d)
Brad Bishop19323692019-04-05 15:28:33 -040042--
Andrew Geisslereef63862021-01-29 15:58:13 -0600432.17.1
Brad Bishop19323692019-04-05 15:28:33 -040044