~leif-lindholm/linaro-grub/linaro

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Vladimir 'phcoder' Serbinenko
  • Date: 2013-08-23 06:46:14 UTC
  • Revision ID: phcoder@gmail.com-20130823064614-khaiknqklnpsb64s
        * configure.ac: Disable efiemu runtime on cygwin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
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