diff options
author | Stefan Bucur <stefanb@zytor.com> | 2008-05-12 21:47:23 +0300 |
---|---|---|
committer | Stefan Bucur <stefanb@zytor.com> | 2008-05-12 21:47:23 +0300 |
commit | 4561fc3586957f5d745bc9eb3baf8d859897da17 (patch) | |
tree | 1789353f8744b40090c74f5ebb924ef0079fb23a /memdump | |
parent | e31a673cc14223db120f363dcd6ecc491125f622 (diff) | |
download | syslinux-4561fc3586957f5d745bc9eb3baf8d859897da17.tar.gz |
Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC -fstack-protector flag enabled by default.
Diffstat (limited to 'memdump')
-rw-r--r-- | memdump/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/memdump/Makefile b/memdump/Makefile index 585381d6..60c4229b 100644 --- a/memdump/Makefile +++ b/memdump/Makefile @@ -1,11 +1,12 @@ TMPFILE = $(shell mktemp /tmp/gcc_ok.XXXXXX) +CC = gcc + gcc_ok = $(shell tmpf=$(TMPFILE); if $(CC) $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \ then echo $(1); else echo $(2); fi; rm -f $$tmpf) M32 := $(call gcc_ok,-m32,) $(call gcc_ok,-ffreestanding,) $(call gcc_ok,-fno-stack-protector,) -CC = gcc LD = ld -m elf_i386 OBJCOPY = objcopy OPTFLAGS = -g -Os -march=i386 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -fomit-frame-pointer |