aboutsummaryrefslogtreecommitdiff
path: root/tools/depends
diff options
context:
space:
mode:
authorChris "Koying" Browet <cbro@semperpax.com>2013-11-09 17:39:22 +0100
committerChris "Koying" Browet <cbro@semperpax.com>2013-11-09 17:40:58 +0100
commitf4f7492e4513fd8fa73ae348575b1078bd7f5404 (patch)
tree84a7fc87856cb33beed9d5756b9c9ed07f6110c0 /tools/depends
parentcabb24885cebcbcdf8a2d119929a84786403ef54 (diff)
FIX: [droid;python] implement hack to bypass locale not implemented in NDK
Diffstat (limited to 'tools/depends')
-rw-r--r--tools/depends/target/python26/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/depends/target/python26/Makefile b/tools/depends/target/python26/Makefile
index b2f1b255ba..56fbb8cda4 100644
--- a/tools/depends/target/python26/Makefile
+++ b/tools/depends/target/python26/Makefile
@@ -38,7 +38,12 @@ endif
cp modules.setup $(PLATFORM)/Modules/Setup.dist
#Add -liconv as needed, and add the _scproxy module for darwin
+# disable locale altogether for Android
+ifeq ($(OS),android)
+ cd $(PLATFORM); sed -ie 's|_locale _localemodule.c -lintl|#_locale _localemodule.c -lintl|' Modules/Setup.dist
+else
cd $(PLATFORM); sed -ie 's|_locale _localemodule.c -lintl|_locale _localemodule.c -lintl $(LINK_ICONV) |' Modules/Setup.dist
+endif
ifeq ($(OS),osx)
echo "_scproxy \$$(srcdir)/Mac/Modules/_scproxy.c -framework SystemConfiguration -framework CoreFoundation" >> $(PLATFORM)/Modules/Setup.dist
endif