using not very significant $target_os.
+2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Determine the need for mingw-related stubs at compile time rather than
+ using not very significant $target_os.
+
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/genmod.sh.in: Strip before converting to ELF as strip
TARGET_CFLAGS="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
fi
-# For platforms where ELF is not the default link format.
-case "${target_os}" in
- cygwin)
-# FIXME: put proper test here
- NEED_REGISTER_FRAME_INFO=1
- ;;
- *) NEED_REGISTER_FRAME_INFO=0 ;;
-esac
-
-
AC_ARG_ENABLE([efiemu],
[AS_HELP_STRING([--enable-efiemu],
[build and install the efiemu runtimes (default=guessed)])])
grub_abort ();
}
-#if NEED_REGISTER_FRAME_INFO && !defined(GRUB_UTIL)
+#if (defined (__MINGW32__) || defined (__CYGWIN__)) && !defined(GRUB_UTIL)
void __register_frame_info (void)
{
}
void __deregister_frame_info (void)
{
}
+void ___chkstk_ms (void)
+{
+}
+
+void __chkstk_ms (void)
+{
+}
#endif
#if BOOT_TIME_STATS
grub_uint64_t d,
grub_uint64_t *r);
-#if !defined(GRUB_UTIL) && NEED_REGISTER_FRAME_INFO
+#if (defined (__MINGW32__) || defined (__CYGWIN__)) && !defined(GRUB_UTIL)
void EXPORT_FUNC (__register_frame_info) (void);
void EXPORT_FUNC (__deregister_frame_info) (void);
+void EXPORT_FUNC (___chkstk_ms) (void);
+void EXPORT_FUNC (__chkstk_ms) (void);
#endif
/* Inline functions. */