summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2018-10-21 20:38:34 +0200
committerJonathan Schleifer <js@heap.zone>2018-10-21 20:38:34 +0200
commit09e852dae6ee491b7e0a4f73ac39ec2e4a1f2353 (patch)
tree782acda76beacb655d08457416e352865d8fc4ae
parent50b1ae9b1ca6403680893a48e6191a110a59492d (diff)
configure: Add flags for arm-*-riscos*
-rw-r--r--configure.ac31
1 files changed, 22 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index cc11bd1d..15ab2ae2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,12 +26,27 @@ dnl Used to disable checking for -pedantic on some platforms where it's broken
check_pedantic="yes"
case "$host" in
+ arm-*-riscos*)
+ AS_IF([test x"$OBJCFLAGS" != x""], [
+ OBJCFLAGS="-O2 -g"
+ ])
+ flags="-mfloat-abi=softfp -mfpu=vfp -mlibscl"
+ ASFLAGS="$ASFLAGS -mfloat-abi=softfp -mfpu=vfp"
+ OBJCFLAGS="$OBJCFLAGS $flags"
+ OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags"
+ LDFLAGS="$LDFLAGS $flags"
+
+ enable_shared="no"
+ enable_threads="no"
+ enable_sockets="no"
+ enable_files="no"
+ ac_cv_snprintf_useful_ret="yes"
+ ;;
m68k-*-amigaos*)
AS_IF([test x"$OBJCFLAGS" != x""], [
- OBJCFLAGS="$OBJCFLAGS -noixemul"
- ], [
- OBJCFLAGS="-O0 -g -noixemul"
+ OBJCFLAGS="-O0 -g"
])
+ OBJCFLAGS="$OBJCFLAGS -noixemul"
OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -noixemul"
LDFLAGS="$LDFLAGS -noixemul"
@@ -58,10 +73,9 @@ case "$host" in
*-morphos*)
AS_IF([test x"$with_ixemul" != x"yes"], [
AS_IF([test x"$OBJCFLAGS" != x""], [
- OBJCFLAGS="$OBJCFLAGS -noixemul"
- ], [
- OBJCFLAGS="-O2 -g -noixemul"
+ OBJCFLAGS="-O2 -g"
])
+ OBJCFLAGS="$OBJCFLAGS -noixemul"
OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -noixemul"
LDFLAGS="$LDFLAGS -noixemul"
enable_files="yes" # Required for reading ENV:
@@ -98,10 +112,9 @@ case "$host" in
])
AS_IF([test x"$OBJCFLAGS" != x""], [
- OBJCFLAGS="$OBJCFLAGS -G0"
- ], [
- OBJCFLAGS="-O2 -G0"
+ OBJCFLAGS="-O2"
])
+ OBJCFLAGS="$OBJCFLAGS -G0"
OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS -G0"
CPPFLAGS="$CPPFLAGS -I$DEVKITPSP/psp/sdk/include"
LDFLAGS="$LDFLAGS -G0"