no-hardcoded-cc.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. diff -Naurp memtest86+-4.10-orig/Makefile memtest86+-4.10/Makefile
  2. --- memtest86+-4.10-orig/Makefile 2010-06-24 00:27:22.864634431 +0200
  3. +++ memtest86+-4.10/Makefile 2010-06-24 00:28:42.402478590 +0200
  4. @@ -8,10 +8,9 @@
  5. #
  6. FDISK=/dev/fd0
  7. -AS=as -32
  8. -CC=gcc
  9. -
  10. -CFLAGS= -Wall -march=i486 -m32 -O2 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector
  11. +CFLAGS=-Wall -march=i486 -m32 -O2 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector
  12. +CPPFLAGS=-m32
  13. +ASFLAGS=-32
  14. OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \
  15. config.o linuxbios.o memsize.o pci.o controller.o random.o spd.o \
  16. @@ -47,10 +46,10 @@ memtest.bin: memtest_shared.bin bootsect
  17. memtest_shared.bin -o memtest.bin
  18. reloc.o: reloc.c
  19. - $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c
  20. + $(CC) -c $(CFLAGS) -fno-strict-aliasing -fno-stack-protector reloc.c
  21. test.o: test.c
  22. - $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c
  23. + $(CC) -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie -nopie test.c
  24. clean:
  25. rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin