--- memtest86-4.0a.orig/Makefile 2011-08-17 16:47:09.000000000 +0300 +++ memtest86-4.0a/Makefile 2011-11-17 00:41:51.198479898 +0200 @@ -8,9 +8,7 @@ # FDISK=/dev/fd0 -AS=as -32 -CC=gcc - +ASFLAGS= -32 CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector @@ -25,13 +23,13 @@ all: clean memtest.bin memtest memtest_shared: $(OBJS) memtest_shared.lds Makefile $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds \ -o $@ $(OBJS) && \ - $(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS) + $(LD) -shared -Bsymbolic -N -T memtest_shared.lds -o $@ $(OBJS) memtest_shared.bin: memtest_shared objcopy -O binary $< memtest_shared.bin memtest: memtest_shared.bin memtest.lds - $(LD) -s -T memtest.lds -b binary memtest_shared.bin -o $@ + $(LD) -s -N -T memtest.lds -b binary memtest_shared.bin -o $@ head.s: head.S config.h defs.h test.h $(CC) -E -traditional $< -o $@ @@ -60,7 +58,7 @@ clean: memtest_shared.bin memtest.iso iso: - make all + ${MAKE} all ./makeiso.sh install: all