From e0672070d1b25808fe21cc374f4b69a44f8608fe Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 24 May 2012 10:56:26 +0200 Subject: [PATCH] Bug 756745 - Add -DANDROID and include path to ASFLAGS when building for Android. r=ted --- configure.in | 1 + js/src/configure.in | 1 + 2 files changed, 2 insertions(+) diff --git a/configure.in b/configure.in index fd7cdfe7ee8b..45aad803396c 100644 --- a/configure.in +++ b/configure.in @@ -369,6 +369,7 @@ case "$target" in CPPFLAGS="-isystem $android_platform/usr/include $CPPFLAGS" CFLAGS="-mandroid -fno-short-enums -fno-exceptions $CFLAGS" CXXFLAGS="-mandroid -fno-short-enums -fno-exceptions $CXXFLAGS" + ASFLAGS="-isystem $android_platform/usr/include -DANDROID $ASFLAGS" dnl Add -llog by default, since we use it all over the place. dnl Add --allow-shlib-undefined, because libGLESv2 links to an diff --git a/js/src/configure.in b/js/src/configure.in index 2d04868f6a0c..204cdf1baf34 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -359,6 +359,7 @@ case "$target" in CPPFLAGS="-isystem $android_platform/usr/include $CPPFLAGS" CFLAGS="-mandroid -fno-short-enums -fno-exceptions $CFLAGS" CXXFLAGS="-mandroid -fno-short-enums -fno-exceptions $CXXFLAGS" + ASFLAGS="-isystem $android_platform/usr/include -DANDROID $ASFLAGS" dnl Add -llog by default, since we use it all over the place. dnl Add --allow-shlib-undefined, because libGLESv2 links to an