diff options
Diffstat (limited to 'sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch')
-rw-r--r-- | sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch b/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch new file mode 100644 index 0000000..3a92f4d --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch @@ -0,0 +1,29 @@ +diff -u memtest86+-2.01.orig/Makefile memtest86+-2.01/Makefile +--- memtest86+-2.01.orig/Makefile 2008-02-21 16:49:24.000000000 +0100 ++++ memtest86+-2.01/Makefile 2008-03-11 14:52:12.000000000 +0100 +@@ -9,9 +9,10 @@ + FDISK=/dev/fd0 + + AS=as -32 +-CC=gcc + +-CFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC ++CFLAGS=-Wall -m32 -march=i486 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector ++CPPFLAGS=-m32 ++ASFLAGS=-32 + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o linuxbios.o memsize.o pci.o controller.o random.o extra.o \ +@@ -47,10 +48,10 @@ + memtest_shared.bin -o memtest.bin + + reloc.o: reloc.c +- $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c ++ $(CC) -c $(CFLAGS) -fno-strict-aliasing -fno-stack-protector reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie -nopie test.c + + clean: + rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin |