blob: fc94be085fdde0d0c3bf466c382ae4f22572b11c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
|