File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2
+
3
+ * configure.ac: Disable efiemu runtime on cygwin.
4
+
1
5
2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2
6
3
7
* conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
Original file line number Diff line number Diff line change @@ -496,6 +496,19 @@ if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
496
496
TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
497
497
fi
498
498
499
+ if test x"$target_os" = xcygwin; then
500
+ AC_CACHE_CHECK ( [ whether option -fno-reorder-functions works] , grub_cv_cc_no_reorder_functions , [
501
+ CFLAGS="$CFLAGS -fno-reorder-functions"
502
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ ] ] , [ [ ] ] ) ] ,
503
+ [ grub_cv_cc_no_reorder_functions=yes] ,
504
+ [ grub_cv_cc_no_reorder_functions=no] )
505
+ ] )
506
+ fi
507
+
508
+ if test x"$target_os" = xcygwin && test "x$grub_cv_cc_no_reorder_functions" = xyes; then
509
+ TARGET_CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
510
+ fi
511
+
499
512
# By default, GCC 4.6 generates .eh_frame sections containing unwind
500
513
# information in some cases where it previously did not. GRUB doesn't need
501
514
# these and they just use up vital space. Restore the old compiler
@@ -570,6 +583,9 @@ AC_ARG_ENABLE([efiemu],
570
583
if test x"$enable_efiemu" = xno ; then
571
584
efiemu_excuse="explicitly disabled"
572
585
fi
586
+ if test x"$target_os" = xcygwin ; then
587
+ efiemu_excuse="not available on cygwin"
588
+ fi
573
589
if test x"$target_cpu" != xi386 ; then
574
590
efiemu_excuse="only available on i386"
575
591
fi
You can’t perform that action at this time.
0 commit comments