Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 487600 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch (-2 / +2 lines)
Lines 11-17 Link Here
11
 
11
 
12
-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \
12
-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \
13
-	-ffreestanding -fPIC $(SMP_FL) -fno-stack-protector
13
-	-ffreestanding -fPIC $(SMP_FL) -fno-stack-protector
14
+CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -nopie $(SMP_FL)
14
+CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector $(SMP_FL)
15
 
15
 
16
 OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \
16
 OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \
17
       config.o memsize.o error.o smp.o cpuid.o vmem.o random.o
17
       config.o memsize.o error.o smp.o cpuid.o vmem.o random.o
Lines 33-39 Link Here
33
 
33
 
34
 random.o: random.c
34
 random.o: random.c
35
-	$(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c
35
-	$(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c
36
+	$(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -nopie random.c
36
+	$(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector random.c
37
 
37
 
38
 clean:
38
 clean:
39
 	rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \
39
 	rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \

Return to bug 487600