aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch
diff options
context:
space:
mode:
authorChris Koying Browet <cbro@semperpax.com>2017-07-20 11:14:16 +0200
committerChris "Koying" Browet <cbro@semperpax.com>2017-08-13 11:42:17 +0200
commit698e92274c40b09b76dcc3deb390a11333760355 (patch)
tree5144e2e121ca4c6a3f2ba04ef119de618752cbfe /tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch
parent03c0bbf37de64abdea9eac88a335abcf0ffe74dc (diff)
FIX: [pil] use env compile options
Diffstat (limited to 'tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch')
-rw-r--r--tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch b/tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch
index a1b3e17d60..86e1a914f7 100644
--- a/tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch
+++ b/tools/depends/target/pythonmodule-pil/pillow-crosscompile.patch
@@ -1,6 +1,6 @@
--- setup.py.orig 2015-10-01 22:39:00.000000000 +0200
+++ setup.py 2015-10-25 12:28:22.023743244 +0100
-@@ -156,6 +156,15 @@
+@@ -156,6 +156,16 @@
_add_directory(include_dirs, "libImaging")
@@ -9,7 +9,8 @@
+ # unfortunately, distutils doesn't let us provide separate C and C++
+ # compilers
+ if compiler is not None:
-+ (ccshared,cflags) = sysconfig.get_config_vars('CCSHARED','CFLAGS')
++ ccshared = os.environ.get('CCSHARED') or ''
++ cflags = os.environ.get('CFLAGS') or ''
+ args['compiler_so'] = compiler + ' ' + ccshared + ' ' + cflags
+ self.compiler.set_executables(**args)
+