summaryrefslogtreecommitdiff
blob: fa7effbeaac472b5e5207ef26ffe95893ff73f96 (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
--- Makefile.orig	2004-11-12 07:16:25.000000000 -0500
+++ Makefile	2005-01-10 21:35:19.000000000 -0500
@@ -12,7 +12,7 @@
 #
 # gcc compiler options, these settings should suffice
 #
-CCFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding
+CCFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector
 
 AS=as -32
 
@@ -21,10 +21,13 @@
 all: memtest.bin memtest
 
 reloc.o: reloc.c
-	$(CC) -c -m32 -fPIC -Wall -O -fno-strict-aliasing reloc.c
+	$(CC) -c -m32 -fPIC -Wall -O -fno-strict-aliasing reloc.c -fno-stack-protector
+
+random.o:
+	$(CC)  -c $(CCFLAGS) -fPIC random.c
 
 test.o: test.c test.h defs.h config.h
-	$(CC) -c $(CCFLAGS) test.c
+	$(CC) -c $(CCFLAGS) -fno-PIC test.c
 
 main.o: main.c test.h defs.h
 	$(CC) -c $(CCFLAGS) -fPIC main.c