FIX: [droid;python] implement hack to bypass locale not implemented in NDK
authorChris "Koying" Browet <cbro@semperpax.com>
Sat, 9 Nov 2013 16:39:22 +0000 (17:39 +0100)
committerChris "Koying" Browet <cbro@semperpax.com>
Sat, 9 Nov 2013 16:40:58 +0000 (17:40 +0100)
tools/depends/target/python26/Makefile

index b2f1b25..56fbb8c 100644 (file)
@@ -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