Signed-off-by: Alexey Gladkov <legion@altlinux.org>
CC=gcc
-RPM_OPT_FLAGS=-O2 -Wall -ansi
-CFLAGS=$(RPM_OPT_FLAGS) -I../src
+ifndef RPM_OPT_FLAGS
+ RPM_OPT_FLAGS=-O2 -pipe -Wall -ansi
+endif
+CFLAGS += $(RPM_OPT_FLAGS) -I../src
LDFLAGS=$(CFLAGS) -s
SRC=openvt.c
WARN = -Wall -Wmissing-prototypes -Wstrict-prototypes
DEFS = -DDATADIR=\"$(DATA_DIR)\"
-RPM_OPT_FLAGS = -O2 -Wall
-CFLAGS = $(RPM_OPT_FLAGS)
+ifndef RPM_OPT_FLAGS
+ RPM_OPT_FLAGS = -O2 -pipe -Wall
+endif
+CFLAGS += $(RPM_OPT_FLAGS)
LDFLAGS = -s
CC = gcc