summaryrefslogtreecommitdiff
path: root/sys-apps/memtest86+/files/memtest86+-5.31b-fix-gcc8-freeze-crash.patch
blob: 44d11b76b344cb2314ec3072720e9251544f2f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur memtest86+-5.31b/Makefile memtest86+-5.31b.new/Makefile
--- memtest86+-5.31b/Makefile	2021-09-16 09:27:24.401570971 -0500
+++ memtest86+-5.31b.new/Makefile	2021-09-16 09:30:24.332704245 -0500
@@ -64,6 +64,9 @@
 memsize.o: memsize.c
 	$(CC) -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector   -c -o memsize.o memsize.c
 
+test.o: test.c
+test.o: CFLAGS += -fno-strict-overflow
+
 random.o: random.c
 random.o: CFLAGS += -O3 -fno-PIC