From 3e9504856f9b4f07b2befa0845fe500fbdfba9f9 Mon Sep 17 00:00:00 2001 From: Thanasis Antoniou Date: Tue, 12 Nov 2019 20:01:43 +0200 Subject: ANDROID: Override UTF-8 compliant definition of vsn_printf This sets Android as a non-standard port in configure in order to override the definition for vsn_printf The vsn_printf implementation is taken from https://github.com/weiss/c99-snprintf --- configure | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 98958fc064..20f763bef4 100755 --- a/configure +++ b/configure @@ -3075,6 +3075,7 @@ if test -n "$_host"; then _port_mk="backends/platform/3ds/3ds.mk" ;; android | android-arm | android-v7a | android-arm-v7a | android-arm64-v8a | android-mips | android-mips64 | android-x86 | android-x86_64 | ouya) + # also __ANDROID__ is defined by Clang in the NDK DEFINES="$DEFINES -D__ANDROID_PLAIN_PORT__ -DANDROID_PLAIN_PORT" # we link a .so as default append_var LDFLAGS "-shared" @@ -3561,6 +3562,8 @@ case $_backend in ;; android) append_var DEFINES "-DREDUCE_MEMORY_USAGE" + append_var DEFINES "-DNONSTANDARD_PORT" + append_var INCLUDES '-I$(srcdir)/backends/platform/android' append_var CXXFLAGS "-Wa,--noexecstack" append_var LDFLAGS "-Wl,-z,noexecstack" # removed the following directive - was causing compilation issues when not also explicitly using --disable-mt32emu -- cgit v1.2.3