diff --git a/pythonforandroid/archs.py b/pythonforandroid/archs.py index 95d94b5f1b..0281c9cb3f 100644 --- a/pythonforandroid/archs.py +++ b/pythonforandroid/archs.py @@ -140,6 +140,10 @@ def get_clang_exe(self, with_target=False, plus_plus=False): def get_env(self, with_flags_in_cc=True): env = {} + # HOME: User's home directory + if 'HOME' in environ: + env['HOME'] = environ['HOME'] + # CFLAGS/CXXFLAGS: the processor flags env['CFLAGS'] = ' '.join(self.common_cflags).format(target=self.target) if self.arch_cflags: