提交 6c90361a 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

move common QEMU_CFLAGS to configure

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 867c16fd
......@@ -16,9 +16,6 @@ endif
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
QEMU_CFLAGS += -I. -I$(SRC_PATH) -MMD -MP -MT $@
QEMU_CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
QEMU_CFLAGS += -U_FORTIFY_SOURCE
LIBS+=-lz
ifdef BUILD_DOCS
......
......@@ -8,9 +8,7 @@ include $(SRC_PATH)/rules.mak
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
QEMU_CFLAGS += -I. -I.. -I$(SRC_PATH) -MMD -MP -MT $@
QEMU_CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
QEMU_CFLAGS+=-I$(SRC_PATH)/fpu
QEMU_CFLAGS+=-I.. -I$(SRC_PATH)/fpu
obj-y =
obj-y += virtio.o virtio-pci.o
......
......@@ -3,7 +3,7 @@ include $(SRC_PATH)/rules.mak
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
QEMU_CFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
QEMU_CFLAGS+= -I.. -I$(TARGET_PATH) -DNEED_CPU_H
ifdef CONFIG_USER_ONLY
# user emulator name
......@@ -44,8 +44,6 @@ ifeq ($(ARCH),ia64)
QEMU_CFLAGS+=-mno-sdata
endif
QEMU_CFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
QEMU_CFLAGS+=-U_FORTIFY_SOURCE
LIBS+=-lm
ifdef CONFIG_SOLARIS
ifdef CONFIG_NEEDS_LIBSUNMATH
......
......@@ -1389,6 +1389,9 @@ if test "$debug" = "no" ; then
fi
QEMU_CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
QEMU_CFLAGS="-U_FORTIFY_SOURCE $QEMU_CFLAGS"
QEMU_CFLAGS="-I. -I\$(SRC_PATH) -MMD -MP -MT \$@ $QEMU_CFLAGS"
LDFLAGS="-g $LDFLAGS"
# Consult white-list to determine whether to enable werror
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册