aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authornotaz2012-07-24 02:51:43 +0300
committernotaz2012-07-24 02:51:47 +0300
commit96751f36c7867567d4d8c612c78f235392d1f243 (patch)
treee561155cfd27a307b54df1247baa1c454317dadc /configure
parentb2013c9ca5e8ed307ee37e9f64127e634fb5039f (diff)
downloadpcsx_rearmed-96751f36c7867567d4d8c612c78f235392d1f243.tar.gz
pcsx_rearmed-96751f36c7867567d4d8c612c78f235392d1f243.tar.bz2
pcsx_rearmed-96751f36c7867567d4d8c612c78f235392d1f243.zip
arm: automatically disable thumb
recompiler can't handle it
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 4cbcc80..00511bd 100755
--- a/configure
+++ b/configure
@@ -170,6 +170,11 @@ if [ "$ARCH" = "arm" ]; then
echo "$ASFLAGS" | grep -q -- '-mfloat-abi=' || ASFLAGS="$ASFLAGS -mfloat-abi=softfp"
fi
+ # must disable -mthumb as recompiler can't handle it
+ if check_define __thumb__; then
+ CFLAGS="$CFLAGS -mno-thumb"
+ fi
+
if [ "$have_armv7" = "yes" ]; then
ASFLAGS="$ASFLAGS --defsym HAVE_ARMV7=1"
else