qemu/qemu-0.8.1-build.patch

40 lines
1.2 KiB
Diff

-- qemu-0.8.1/Makefile.orig 2006-06-17 22:00:03.000000000 +0900
+++ qemu-0.8.1/Makefile 2006-06-17 22:00:40.000000000 +0900
@@ -1,6 +1,6 @@
include config-host.mak
-CFLAGS=-Wall -O2 -g -fno-strict-aliasing -I.
+CFLAGS=$(RPM_OPT_FLAGS) -O2 -g -fno-strict-aliasing -I.
ifdef CONFIG_DARWIN
CFLAGS+= -mdynamic-no-pic
endif
--- qemu-0.8.1/Makefile.target.orig 2006-06-17 21:36:49.000000000 +0900
+++ qemu-0.8.1/Makefile.target 2006-06-17 21:39:31.000000000 +0900
@@ -17,7 +17,7 @@
VPATH+=:$(SRC_PATH)/linux-user
DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
endif
-CFLAGS=-Wall -O2 -g -fno-strict-aliasing
+CFLAGS=$(RPM_OPT_FLAGS) -Wall -fno-strict-aliasing
#CFLAGS+=-Werror
LDFLAGS=-g
LIBS=
@@ -119,7 +119,7 @@
ifeq ($(ARCH),alpha)
# -msmall-data is not used because we want two-instruction relocations
# for the constant constructions
-OP_CFLAGS=-Wall -O2 -g
+OP_CFLAGS=$(RPM_OPT_FLAGS) -Wall
# Ensure there's only a single GP
CFLAGS += -msmall-data
LDFLAGS+=-Wl,-T,$(SRC_PATH)/alpha.ld
@@ -492,7 +492,7 @@
install: all
ifneq ($(PROGS),)
- $(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"
+ $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
endif
ifneq ($(wildcard .depend),)