forked from yan12125/python3-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcppflags.patch
More file actions
15 lines (14 loc) · 723 Bytes
/
Copy pathcppflags.patch
File metadata and controls
15 lines (14 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/setup.py b/setup.py
index 3b3d097454..418c4864a1 100644
--- a/setup.py
+++ b/setup.py
@@ -262,8 +262,8 @@ class PyBuildExt(build_ext):
# 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')
- args['compiler_so'] = compiler + ' ' + ccshared + ' ' + cflags
+ (ccshared,cflags, cppflags) = sysconfig.get_config_vars('CCSHARED','CFLAGS', 'CPPFLAGS')
+ args['compiler_so'] = compiler + ' ' + ccshared + ' ' + cppflags + ' ' + cflags
self.compiler.set_executables(**args)
build_ext.build_extensions(self)