]> git.proxmox.com Git - grub2.git/commitdiff
* configure.ac: Disable efiemu runtime on cygwin.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 23 Aug 2013 06:46:14 +0000 (08:46 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 23 Aug 2013 06:46:14 +0000 (08:46 +0200)
ChangeLog
configure.ac

index 653e72c6f336e33a004c937ca1784ed1cde365f6..2a062fb0c6b74cf400292a55ca888dfc6f04cf56 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Disable efiemu runtime on cygwin.
+
 2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
index 58dd2b8728de89dae07413c4f074be0f86dbeec2..457aafa4581885fb6a8bbbcd4fcee63ea80712db 100644 (file)
@@ -496,6 +496,19 @@ if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
   TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
 fi
 
+if test x"$target_os" = xcygwin; then
+  AC_CACHE_CHECK([whether option -fno-reorder-functions works], grub_cv_cc_no_reorder_functions, [
+    CFLAGS="$CFLAGS -fno-reorder-functions"
+    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
+                     [grub_cv_cc_no_reorder_functions=yes],
+                     [grub_cv_cc_no_reorder_functions=no])
+  ])
+fi
+
+if test x"$target_os" = xcygwin && test "x$grub_cv_cc_no_reorder_functions" = xyes; then
+  TARGET_CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
+fi
+
 # By default, GCC 4.6 generates .eh_frame sections containing unwind
 # information in some cases where it previously did not. GRUB doesn't need
 # these and they just use up vital space. Restore the old compiler
@@ -570,6 +583,9 @@ AC_ARG_ENABLE([efiemu],
 if test x"$enable_efiemu" = xno ; then
   efiemu_excuse="explicitly disabled"
 fi
+if test x"$target_os" = xcygwin ; then
+  efiemu_excuse="not available on cygwin"
+fi
 if test x"$target_cpu" != xi386 ; then
   efiemu_excuse="only available on i386"
 fi