Kaydet (Commit) 22779b13 authored tarafından Rene Engelhard's avatar Rene Engelhard

use (new) -mlong-jump-table-offsets on m68k for libxo

Change-Id: I6e2886e2de4f3502c74f1e367216066352994865
üst a5a94537
......@@ -3778,6 +3778,19 @@ if test "$GCC" = "yes"; then
AC_MSG_RESULT([no])
fi
fi
if test "$host_cpu" = "m68k"; then
AC_MSG_CHECKING([whether $CC supports -mlong-jump-table-offsets])
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror -mlong-jump-table-offsets"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ return 0; ]])],[ HAVE_GCC_LONG_JUMP_TABLE_OFFSETS=TRUE ],[])
CFLAGS=$save_CFLAGS
if test "$HAVE_GCC_LONG_JUMP_TABLE_OFFSETS" = "TRUE"; then
AC_MSG_RESULT([yes])
else
AC_MSG_ERROR([no])
fi
fi
fi
AC_SUBST(HAVE_GCC_GGDB2)
AC_SUBST(HAVE_GCC_FINLINE_LIMIT)
......
......@@ -368,4 +368,10 @@ $(eval $(call gb_Library_add_exception_objects,xo,\
xmloff/source/xforms/xformsimport \
))
ifeq ($(CPUNAME),M68K)
$(eval $(call gb_Library_add_cxxflags,xo,\
-mlong-jump-table-offsets \
))
endif
# vim: set noet sw=4 ts=4:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment