1 diff -ur syslinux-3.36.old/com32/libutil/Makefile syslinux-3.36/com32/libutil/Makefile
2 --- syslinux-3.36.old/com32/libutil/Makefile 2007-02-10 20:47:08.000000000 +0000
3 +++ syslinux-3.36/com32/libutil/Makefile 2007-02-11 07:27:16.000000000 +0000
5 gcc_ok = $(shell if gcc $(1) -c -x c /dev/null -o /dev/null 2>/dev/null; \
6 then echo $(1); else echo $(2); fi)
8 -M32 := $(call gcc_ok,-m32,) $(call gcc_ok,-fno-stack-protector,)
9 +M32 := $(call gcc_ok,-m32,) $(call gcc_ok,-fno-stack-protector,) $(call gcc_ok,-nopie,) $(call gcc_ok,-no-pie,)
13 diff -ur syslinux-3.36.old/dos/Makefile syslinux-3.36/dos/Makefile
14 --- syslinux-3.36.old/dos/Makefile 2007-02-10 20:47:08.000000000 +0000
15 +++ syslinux-3.36/dos/Makefile 2007-02-11 07:30:23.000000000 +0000
17 gcc_ok = $(shell if gcc $(1) -c -x c /dev/null -o /dev/null 2>/dev/null; \
18 then echo $(1); else echo $(2); fi)
20 -M32 := $(call gcc_ok,-m32,) $(call gcc_ok,-ffreestanding,) $(call gcc_ok,-fno-stack-protector,)
21 +M32 := $(call gcc_ok,-m32,) \
22 + $(call gcc_ok,-ffreestanding,) \
23 + $(call gcc_ok,-fno-stack-protector,) \
24 + $(call gcc_ok,-nopie,) $(call gcc_ok,-no-pie,)