diff -Naurp memtest86-3.4-orig/Makefile memtest86-3.4/Makefile --- memtest86-3.4-orig/Makefile 2008-09-28 12:56:45.000000000 +0200 +++ memtest86-3.4/Makefile 2008-09-28 12:57:35.000000000 +0200 @@ -10,8 +10,11 @@ FDISK=/dev/fd0 CC=gcc -CFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin \ - -ffreestanding -fPIC +CFLAGS=-Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ + -ffreestanding -fPIC -fno-stack-protector +AS=$(CC) -c +ASFLAGS=-m32 +LD=ld -m elf_i386 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 \ @@ -41,8 +44,7 @@ reloc.o: reloc.c $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c test.o: test.c - $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin \ - -ffreestanding test.c + $(CC) -c $(CFLAGS:-fPIC=) -o $@ $< clean: rm -f *.o memtest.bin memtest memtest_shared memtest_shared.bin