contrib/memtest86+/memtest86+-2.11-makefile_cflags_asflags.patch
2008-12-24 22:19:40 +11:00

21 lines
650 B
Diff

diff -pruN memtest86+-2.11.orig/Makefile memtest86+-2.11/Makefile
--- memtest86+-2.11.orig/Makefile 2008-12-24 10:41:30.410800131 +0000
+++ memtest86+-2.11/Makefile 2008-12-24 10:51:17.727550623 +0000
@@ -8,10 +8,13 @@
#
FDISK=/dev/fd0
-AS=as -32
-CC=gcc
+AS?=as
+CC?=gcc
-CFLAGS= -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC
+CPPFLAGS=-m32
+CFLAGS?=-0s -march=i486 -fomit-frame-pointer
+CFLAGS+= -m32 -fPIC -Wall -ffreestanding -fno-builtin
+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 \