Don't overwrite CFLAGS and RPM_OPT_FLAGS variables
authorAlexey Gladkov <legion@altlinux.org>
Fri, 11 May 2007 14:17:40 +0000 (18:17 +0400)
committerAlexey Gladkov <legion@altlinux.org>
Fri, 11 May 2007 14:17:40 +0000 (18:17 +0400)
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
openvt/Makefile
src/Makefile.in

index 3180c47..1a8fbaf 100644 (file)
@@ -1,7 +1,9 @@
 
 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
index 0c99a0a..cc25af0 100644 (file)
@@ -54,8 +54,10 @@ SHCMDS  = unicode_start unicode_stop
 
 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