@@ -90,11 +90,11 @@ AC_SUBST(SFDC_TARGET, ppc-morphos) AC_SUBST(SFD_FILE, morphos.sfd) t="-mresident32 -fno-builtin" AC_SUBST(AMIGA_LIB_CFLAGS, $t) t="-mresident32 -nostartfiles -nodefaultlibs" - t="$tmp -lc" + t="$t -lc" AC_SUBST(AMIGA_LIB_LDFLAGS, $t) ]) ]) enable_shared="no" @@ -273,11 +273,18 @@ AX_CHECK_COMPILER_FLAGS(-std=gnu99, [OBJCFLAGS="$OBJCFLAGS -std=gnu99"]) ]) ]) -AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"]) +case "$build_os" in + morphos*) + # MorphOS 3.10 has a buggy ixemul that does not work with -pipe. + ;; + *) + AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"]) + ;; +esac AX_CHECK_COMPILER_FLAGS(-fno-common, [OBJCFLAGS="$OBJCFLAGS -fno-common"]) AX_CHECK_COMPILER_FLAGS(-Xclang -fno-constant-cfstrings, [ flag="-Xclang -fno-constant-cfstrings" OBJCFLAGS="$OBJCFLAGS $flag" OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flag"