Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | |
| 4 | This patch avoids this configure failure |
| 5 | |
| 6 | configure:20306: checking whether `ccache i586-poky-linux-gcc -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/builddisk/build/build0/tmp/sysroots/emenlow' generates calls to `__enable_execute_stack()' |
| 7 | configure:20320: ccache i586-poky-linux-gcc -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/builddisk/build/build0/tmp/sysroots/emenlow -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -mfpmath=387 -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -Wno-trampolines -falign-loops=1 -S conftest.c |
| 8 | conftest.c:308:6: error: no previous prototype for 'g' [-Werror=missing-prototypes] |
| 9 | cc1: all warnings being treated as errors |
| 10 | configure:20323: $? = 1 |
| 11 | configure:20327: error: ccache i586-poky-linux-gcc -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/builddisk/build/build0/tmp/sysroots/emenlow failed to produce assembly code |
| 12 | |
| 13 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> |
| 14 | 2012/04/13 |
| 15 | |
| 16 | Index: grub-2.00/acinclude.m4 |
| 17 | =================================================================== |
| 18 | --- grub-2.00.orig/acinclude.m4 |
| 19 | +++ grub-2.00/acinclude.m4 |
| 20 | @@ -317,6 +317,7 @@ dnl Check if the C compiler generates ca |
| 21 | AC_DEFUN([grub_CHECK_ENABLE_EXECUTE_STACK],[ |
| 22 | AC_MSG_CHECKING([whether `$CC' generates calls to `__enable_execute_stack()']) |
| 23 | AC_LANG_CONFTEST([AC_LANG_SOURCE([[ |
| 24 | +void g (int); |
| 25 | void f (int (*p) (void)); |
| 26 | void g (int i) |
| 27 | { |