aboutsummaryrefslogtreecommitdiff
path: root/tools/depends
diff options
context:
space:
mode:
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