mvadkert / rpms / qemu

Forked from rpms/qemu 6 years ago
Clone
9b980ed
--- qemu-0.7.0/Makefile.orig	2005-04-27 21:52:05.000000000 +0100
9b980ed
+++ qemu-0.7.0/Makefile	2005-04-30 11:01:41.000000000 +0100
c8e4b31
@@ -1,6 +1,6 @@
c8e4b31
 -include config-host.mak
c8e4b31
 
c8e4b31
-CFLAGS=-Wall -O2 -g -fno-strict-aliasing 
9f8ef0c
+CFLAGS=$(subst -mtune=,-mcpu=,$(RPM_OPT_FLAGS)) -Wall -fno-strict-aliasing 
c8e4b31
 ifdef CONFIG_DARWIN
c8e4b31
 CFLAGS+= -mdynamic-no-pic
c8e4b31
 endif
9b980ed
--- qemu-0.7.0/Makefile.target.orig	2005-04-27 21:52:05.000000000 +0100
9b980ed
+++ qemu-0.7.0/Makefile.target	2005-04-30 11:03:59.000000000 +0100
9b980ed
@@ -14,7 +14,7 @@
c8e4b31
 VPATH+=:$(SRC_PATH)/linux-user
c8e4b31
 DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
c8e4b31
 endif
c8e4b31
-CFLAGS=-Wall -O2 -g -fno-strict-aliasing
9f8ef0c
+CFLAGS=$(subst -mtune=,-mcpu=,$(RPM_OPT_FLAGS)) -Wall -fno-strict-aliasing 
9b980ed
 #CFLAGS+=-Werror
c8e4b31
 LDFLAGS=-g
c8e4b31
 LIBS=
9b980ed
@@ -177,7 +177,7 @@
c8e4b31
 ifeq ($(ARCH),alpha)
c8e4b31
 # -msmall-data is not used because we want two-instruction relocations
c8e4b31
 # for the constant constructions
c8e4b31
-OP_CFLAGS=-Wall -O2 -g
9f8ef0c
+OP_CFLAGS=$(subst -mtune=,-mcpu=,$(RPM_OPT_FLAGS)) -Wall
c8e4b31
 # Ensure there's only a single GP
c8e4b31
 CFLAGS += -msmall-data
c8e4b31
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/alpha.ld
9b980ed
@@ -463,7 +463,7 @@
c8e4b31
 
c8e4b31
 install: all 
c8e4b31
 ifneq ($(PROGS),)
c8e4b31
-	install -m 755 -s $(PROGS) "$(bindir)"
c8e4b31
+	install -m 755 $(PROGS) "$(bindir)"
c8e4b31
 endif
c8e4b31
 
c8e4b31
 ifneq ($(wildcard .depend),)