blob: 2eff9b73d417ae75d27cfc31efa9856374ba3490 (
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
28
29
30
|
diff -Naupr memtest86+-2.11-orig/Makefile memtest86+-2.11/Makefile
--- memtest86+-2.11-orig/Makefile 2009-01-03 12:51:46.000000000 +0100
+++ memtest86+-2.11/Makefile 2009-01-03 12:53:40.000000000 +0100
@@ -8,10 +8,9 @@
#
FDISK=/dev/fd0
-AS=as -32
-CC=gcc
-
-CFLAGS= -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC
+CPPFLAGS=-m32
+CFLAGS=-Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector
+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 +46,10 @@ memtest.bin: memtest_shared.bin bootsect
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 -O1 -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
|