Skip to content

Commit cc8bff7

Browse files
committed
CPPFLAGS instead of CFLAGS;
1 parent 10d0c1d commit cc8bff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/python2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def do_python_build(self, arch):
102102
sqlite3recipe = Recipe.get_recipe('sqlite3', self.ctx)
103103
sqlite_inc_dir = sqlite3recipe.get_build_dir(arch.arch)
104104
sqlite_libs_dir = sqlite3recipe.get_lib_dir(arch)
105-
env['CFLAGS'] += ' -I' + sqlite_inc_dir
105+
env['CPPFLAGS'] = ' -I' + sqlite_inc_dir
106106
env['LDFLAGS'] += ' -L' + sqlite_libs_dir + ' -lsqlite3'
107107
self.apply_patch('patches/enable-sqlite3.patch', arch.arch)
108108
shprint(sh.sed, '-i', 's#SQLITE_RECIPE_INC#{}#'.format(sqlite_inc_dir),

0 commit comments

Comments
 (0)