Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #262 from fatseng/master
Browse files Browse the repository at this point in the history
Bug 1243314 - add '-m32' compiler option for x86 32bits
  • Loading branch information
lissyx committed Feb 3, 2016
2 parents 1e7e737 + 8f5dd36 commit 9c6806c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions default-gecko-config
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ ac_add_options --enable-update-packaging
# Enable dump() from JS.
export CXXFLAGS="-DMOZ_ENABLE_JS_DUMP $EXTRA_INCLUDE ${CXXFLAGS}"

# In order to support x86 64bis, Google change x86 toolchain from lollipop.
# Prefix was changed from i686-linux-android to x86_64-linux-android
# Add "-m32" to build x86 32bits
if [ "$TARGET_ARCH" = "x86" ]; then
case "$GECKO_TOOLS_PREFIX" in
*x86_64-linux-android-*)
export CFLAGS="-m32 ${CFLAGS}"
export CXXFLAGS="-m32 ${CXXFLAGS}"
export LDFLAGS="-m32 ${LDFLAGS}"
export ASFLAGS="-m32 ${ASFLAGS}"
;;
esac
fi

ac_add_options --with-fpu="$ARCH_ARM_VFP"

if [ "${MOZ_DMD:-0}" != 0 ]; then
Expand Down

0 comments on commit 9c6806c

Please sign in to comment.