Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 260880
Collapse All | Expand All

(-)a/Config.mk (-1 / +1 lines)
Lines 14-20 Link Here
14
14
15
# Tools to run on system hosting the build
15
# Tools to run on system hosting the build
16
HOSTCC      = gcc
16
HOSTCC      = gcc
17
HOSTCFLAGS  = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
17
HOSTCFLAGS  = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
18
HOSTCFLAGS += -fno-strict-aliasing
18
HOSTCFLAGS += -fno-strict-aliasing
19
19
20
DISTDIR     ?= $(XEN_ROOT)/dist
20
DISTDIR     ?= $(XEN_ROOT)/dist
(-)a/extras/mini-os/minios.mk (-1 / +1 lines)
Lines 6-12 Link Here
6
6
7
# Define some default flags.
7
# Define some default flags.
8
# NB. '-Wcast-qual' is nasty, so I omitted it.
8
# NB. '-Wcast-qual' is nasty, so I omitted it.
9
DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls
9
DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls
10
DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
10
DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
11
DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline)
11
DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline)
12
DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
12
DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
(-)a/tools/blktap/drivers/Makefile (-1 lines)
Lines 5-11 Link Here
5
QCOW_UTIL    = img2qcow qcow2raw qcow-create
5
QCOW_UTIL    = img2qcow qcow2raw qcow-create
6
LIBAIO_DIR   = ../../libaio/src
6
LIBAIO_DIR   = ../../libaio/src
7
7
8
CFLAGS   += -Werror
9
CFLAGS   += -Wno-unused
8
CFLAGS   += -Wno-unused
10
CFLAGS   += -I../lib
9
CFLAGS   += -I../lib
11
CFLAGS   += $(CFLAGS_libxenctrl)
10
CFLAGS   += $(CFLAGS_libxenctrl)
(-)a/tools/blktap/lib/Makefile (-1 lines)
Lines 13-19 Link Here
13
SRCS     :=
13
SRCS     :=
14
SRCS     += xenbus.c blkif.c xs_api.c
14
SRCS     += xenbus.c blkif.c xs_api.c
15
15
16
CFLAGS   += -Werror
17
CFLAGS   += -Wno-unused
16
CFLAGS   += -Wno-unused
18
CFLAGS   += -fPIC
17
CFLAGS   += -fPIC
19
# get asprintf():
18
# get asprintf():
(-)a/tools/console/Makefile (-2 lines)
Lines 2-9 Link Here
2
XEN_ROOT=../..
2
XEN_ROOT=../..
3
include $(XEN_ROOT)/tools/Rules.mk
3
include $(XEN_ROOT)/tools/Rules.mk
4
4
5
CFLAGS  += -Werror
6
7
CFLAGS  += $(CFLAGS_libxenctrl)
5
CFLAGS  += $(CFLAGS_libxenctrl)
8
CFLAGS  += $(CFLAGS_libxenstore)
6
CFLAGS  += $(CFLAGS_libxenstore)
9
LDFLAGS += $(LDFLAGS_libxenctrl)
7
LDFLAGS += $(LDFLAGS_libxenctrl)
(-)a/tools/debugger/xenitp/Makefile (-1 / +1 lines)
Lines 1-7 Link Here
1
XEN_ROOT=../../..
1
XEN_ROOT=../../..
2
include $(XEN_ROOT)/tools/Rules.mk
2
include $(XEN_ROOT)/tools/Rules.mk
3
3
4
#CFLAGS  += -Werror -g -O0
4
#CFLAGS  += -g -O0
5
5
6
CFLAGS  += $(CFLAGS_libxenctrl)
6
CFLAGS  += $(CFLAGS_libxenctrl)
7
7
(-)a/tools/firmware/Rules.mk (-2 lines)
Lines 10-17 Link Here
10
CFLAGS += -DNDEBUG
10
CFLAGS += -DNDEBUG
11
endif
11
endif
12
12
13
CFLAGS += -Werror
14
15
# Disable PIE/SSP if GCC supports them. They can break us.
13
# Disable PIE/SSP if GCC supports them. They can break us.
16
$(call cc-option-add,CFLAGS,CC,-nopie)
14
$(call cc-option-add,CFLAGS,CC,-nopie)
17
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
15
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
(-)a/tools/flask/libflask/Makefile (-1 lines)
Lines 9-15 Link Here
9
SRCS       :=
9
SRCS       :=
10
SRCS       += flask_op.c
10
SRCS       += flask_op.c
11
11
12
CFLAGS   += -Werror
13
CFLAGS   += -fno-strict-aliasing
12
CFLAGS   += -fno-strict-aliasing
14
CFLAGS   += $(INCLUDES) -I./include -I$(XEN_LIBXC) -I$(XEN_INCLUDE)
13
CFLAGS   += $(INCLUDES) -I./include -I$(XEN_LIBXC) -I$(XEN_INCLUDE)
15
14
(-)a/tools/flask/loadpolicy/Makefile (-1 / +1 lines)
Lines 6-12 Link Here
6
LIBFLASK_ROOT = $(XEN_ROOT)/tools/flask/libflask
6
LIBFLASK_ROOT = $(XEN_ROOT)/tools/flask/libflask
7
7
8
PROFILE=#-pg
8
PROFILE=#-pg
9
BASECFLAGS=-Wall -g -Werror
9
BASECFLAGS=-Wall -g
10
BASECFLAGS+= $(PROFILE)
10
BASECFLAGS+= $(PROFILE)
11
#BASECFLAGS+= -I$(XEN_ROOT)/tools
11
#BASECFLAGS+= -I$(XEN_ROOT)/tools
12
BASECFLAGS+= $(CFLAGS_libxenctrl)
12
BASECFLAGS+= $(CFLAGS_libxenctrl)
(-)a/tools/fs-back/Makefile (-1 lines)
Lines 5-11 Link Here
5
5
6
IBIN         = fs-backend 
6
IBIN         = fs-backend 
7
7
8
CFLAGS   += -Werror
9
CFLAGS   += -Wno-unused
8
CFLAGS   += -Wno-unused
10
CFLAGS   += -fno-strict-aliasing
9
CFLAGS   += -fno-strict-aliasing
11
CFLAGS   += $(CFLAGS_libxenctrl)
10
CFLAGS   += $(CFLAGS_libxenctrl)
(-)a/tools/libaio/harness/Makefile (-1 / +1 lines)
Lines 4-10 Link Here
4
HARNESS_SRCS:=main.c
4
HARNESS_SRCS:=main.c
5
# io_queue.c
5
# io_queue.c
6
6
7
CFLAGS=-Wall -Werror -g -O -laio
7
CFLAGS=-Wall -g -O -laio
8
#-lpthread -lrt
8
#-lpthread -lrt
9
9
10
all: $(PROGS)
10
all: $(PROGS)
(-)a/tools/libfsimage/Rules.mk (-1 / +1 lines)
Lines 1-6 Link Here
1
include $(XEN_ROOT)/tools/Rules.mk
1
include $(XEN_ROOT)/tools/Rules.mk
2
2
3
CFLAGS += -I$(XEN_ROOT)/tools/libfsimage/common/ -Werror
3
CFLAGS += -I$(XEN_ROOT)/tools/libfsimage/common/
4
LDFLAGS += -L../common/
4
LDFLAGS += -L../common/
5
5
6
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
6
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
(-)a/tools/libxc/Makefile (-1 / +1 lines)
Lines 54-60 Link Here
54
54
55
-include $(XEN_TARGET_ARCH)/Makefile
55
-include $(XEN_TARGET_ARCH)/Makefile
56
56
57
CFLAGS   += -Werror -Wmissing-prototypes
57
CFLAGS   += -Wmissing-prototypes
58
CFLAGS   += $(INCLUDES) -I. -I../xenstore -I../include
58
CFLAGS   += $(INCLUDES) -I. -I../xenstore -I../include
59
59
60
# Needed for posix_fadvise64() in xc_linux.c
60
# Needed for posix_fadvise64() in xc_linux.c
(-)a/tools/libxen/Makefile.dist (-1 / +1 lines)
Lines 22-28 Link Here
22
CFLAGS = -Iinclude                     \
22
CFLAGS = -Iinclude                     \
23
         $(shell xml2-config --cflags) \
23
         $(shell xml2-config --cflags) \
24
         $(shell curl-config --cflags) \
24
         $(shell curl-config --cflags) \
25
         -W -Wall -Wmissing-prototypes -Werror -std=c99 -O2 -fPIC
25
         -W -Wall -Wmissing-prototypes -std=c99 -O2 -fPIC
26
26
27
LDFLAGS = $(shell xml2-config --libs) \
27
LDFLAGS = $(shell xml2-config --libs) \
28
          $(shell curl-config --libs)
28
          $(shell curl-config --libs)
(-)a/tools/misc/Makefile (-2 lines)
Lines 1-8 Link Here
1
XEN_ROOT=../..
1
XEN_ROOT=../..
2
include $(XEN_ROOT)/tools/Rules.mk
2
include $(XEN_ROOT)/tools/Rules.mk
3
3
4
CFLAGS   += -Werror
5
6
INCLUDES += -I $(XEN_XC)
4
INCLUDES += -I $(XEN_XC)
7
INCLUDES += -I $(XEN_LIBXC)
5
INCLUDES += -I $(XEN_LIBXC)
8
INCLUDES += -I $(XEN_INCLUDE)
6
INCLUDES += -I $(XEN_INCLUDE)
(-)a/tools/misc/lomount/Makefile (-2 lines)
Lines 1-8 Link Here
1
XEN_ROOT=../../..
1
XEN_ROOT=../../..
2
include $(XEN_ROOT)/tools/Rules.mk
2
include $(XEN_ROOT)/tools/Rules.mk
3
3
4
CFLAGS  += -Werror
5
6
HDRS     = $(wildcard *.h)
4
HDRS     = $(wildcard *.h)
7
OBJS     = $(patsubst %.c,%.o,$(wildcard *.c))
5
OBJS     = $(patsubst %.c,%.o,$(wildcard *.c))
8
6
(-)a/tools/pygrub/setup.py (-1 / +1 lines)
Lines 3-9 Link Here
3
import os
3
import os
4
import sys
4
import sys
5
5
6
extra_compile_args  = [ "-fno-strict-aliasing", "-Werror" ]
6
extra_compile_args  = [ "-fno-strict-aliasing" ]
7
7
8
XEN_ROOT = "../.."
8
XEN_ROOT = "../.."
9
9
(-)a/tools/python/setup.py (-1 / +1 lines)
Lines 4-10 Link Here
4
4
5
XEN_ROOT = "../.."
5
XEN_ROOT = "../.."
6
6
7
extra_compile_args  = [ "-fno-strict-aliasing", "-Werror" ]
7
extra_compile_args  = [ "-fno-strict-aliasing" ]
8
8
9
include_dirs = [ XEN_ROOT + "/tools/libxc",
9
include_dirs = [ XEN_ROOT + "/tools/libxc",
10
                 XEN_ROOT + "/tools/xenstore",
10
                 XEN_ROOT + "/tools/xenstore",
(-)a/tools/security/Makefile (-1 lines)
Lines 1-7 Link Here
1
XEN_ROOT = ../..
1
XEN_ROOT = ../..
2
include $(XEN_ROOT)/tools/Rules.mk
2
include $(XEN_ROOT)/tools/Rules.mk
3
3
4
CFLAGS   += -Werror
5
CFLAGS   += -fno-strict-aliasing
4
CFLAGS   += -fno-strict-aliasing
6
CFLAGS   += -I. $(CFLAGS_libxenctrl)
5
CFLAGS   += -I. $(CFLAGS_libxenctrl)
7
6
(-)a/tools/vnet/libxutil/Makefile (-1 / +1 lines)
Lines 25-31 Link Here
25
PIC_OBJS := $(LIB_SRCS:.c=.opic)
25
PIC_OBJS := $(LIB_SRCS:.c=.opic)
26
26
27
$(call cc-option-add,CFLAGS,CC,-fgnu89-inline)
27
$(call cc-option-add,CFLAGS,CC,-fgnu89-inline)
28
CFLAGS   += -Werror -fno-strict-aliasing
28
CFLAGS   += -fno-strict-aliasing
29
CFLAGS   += -O3
29
CFLAGS   += -O3
30
#CFLAGS   += -g
30
#CFLAGS   += -g
31
31
(-)a/tools/vtpm/Rules.mk (-1 / +1 lines)
Lines 9-15 Link Here
9
TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
9
TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
10
10
11
# General compiler flags
11
# General compiler flags
12
CFLAGS   = -Werror -g3 -I.
12
CFLAGS   = -g3 -I.
13
13
14
# Generic project files
14
# Generic project files
15
HDRS	= $(wildcard *.h)
15
HDRS	= $(wildcard *.h)
(-)a/tools/vtpm_manager/Rules.mk (-1 / +1 lines)
Lines 9-15 Link Here
9
TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
9
TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
10
10
11
# General compiler flags
11
# General compiler flags
12
CFLAGS	= -Werror -g3 -I.
12
CFLAGS	= -g3 -I.
13
13
14
# Generic project files
14
# Generic project files
15
HDRS	= $(wildcard *.h)
15
HDRS	= $(wildcard *.h)
(-)a/tools/xcutils/Makefile (-1 lines)
Lines 11-17 Link Here
11
XEN_ROOT	= ../..
11
XEN_ROOT	= ../..
12
include $(XEN_ROOT)/tools/Rules.mk
12
include $(XEN_ROOT)/tools/Rules.mk
13
13
14
CFLAGS += -Werror
15
CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) $(CFLAGS_libxenstore)
14
CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) $(CFLAGS_libxenstore)
16
15
17
PROGRAMS = xc_restore xc_save readnotes lsevtchn
16
PROGRAMS = xc_restore xc_save readnotes lsevtchn
(-)a/tools/xenmon/Makefile (-1 lines)
Lines 13-19 Link Here
13
XEN_ROOT=../..
13
XEN_ROOT=../..
14
include $(XEN_ROOT)/tools/Rules.mk
14
include $(XEN_ROOT)/tools/Rules.mk
15
15
16
CFLAGS  += -Werror
17
CFLAGS  += -I $(XEN_XC)
16
CFLAGS  += -I $(XEN_XC)
18
CFLAGS  += $(CFLAGS_libxenctrl)
17
CFLAGS  += $(CFLAGS_libxenctrl)
19
LDFLAGS += $(LDFLAGS_libxenctrl)
18
LDFLAGS += $(LDFLAGS_libxenctrl)
(-)a/tools/xenpmd/Makefile (-1 lines)
Lines 1-7 Link Here
1
XEN_ROOT=../..
1
XEN_ROOT=../..
2
include $(XEN_ROOT)/tools/Rules.mk
2
include $(XEN_ROOT)/tools/Rules.mk
3
3
4
CFLAGS  += -Werror
5
CFLAGS  += $(CFLAGS_libxenstore)
4
CFLAGS  += $(CFLAGS_libxenstore)
6
LDFLAGS += $(LDFLAGS_libxenstore)
5
LDFLAGS += $(LDFLAGS_libxenstore)
7
6
(-)a/tools/xenstat/libxenstat/Makefile (-1 / +1 lines)
Lines 34-40 Link Here
34
OBJECTS-$(CONFIG_NetBSD) += src/xenstat_netbsd.o
34
OBJECTS-$(CONFIG_NetBSD) += src/xenstat_netbsd.o
35
SONAME_FLAGS=-Wl,$(SONAME_LDFLAG) -Wl,libxenstat.so.$(MAJOR)
35
SONAME_FLAGS=-Wl,$(SONAME_LDFLAG) -Wl,libxenstat.so.$(MAJOR)
36
36
37
WARN_FLAGS=-Wall -Werror
37
WARN_FLAGS=-Wall
38
38
39
CFLAGS+=-Isrc -I$(XEN_LIBXC) -I$(XEN_XENSTORE) -I$(XEN_INCLUDE)
39
CFLAGS+=-Isrc -I$(XEN_LIBXC) -I$(XEN_XENSTORE) -I$(XEN_INCLUDE)
40
LDFLAGS+=-Lsrc -L$(XEN_XENSTORE)/ -L$(XEN_LIBXC)/
40
LDFLAGS+=-Lsrc -L$(XEN_XENSTORE)/ -L$(XEN_LIBXC)/
(-)a/tools/xenstat/xentop/Makefile (-1 / +1 lines)
Lines 18-24 Link Here
18
all install xentop:
18
all install xentop:
19
else
19
else
20
20
21
CFLAGS += -DGCC_PRINTF -Wall -Werror -I$(XEN_LIBXENSTAT)
21
CFLAGS += -DGCC_PRINTF -Wall -I$(XEN_LIBXENSTAT)
22
LDFLAGS += -L$(XEN_LIBXENSTAT)
22
LDFLAGS += -L$(XEN_LIBXENSTAT)
23
LDLIBS += -lxenstat $(CURSES_LIBS) $(SOCKET_LIBS)
23
LDLIBS += -lxenstat $(CURSES_LIBS) $(SOCKET_LIBS)
24
CFLAGS += -DHOST_$(XEN_OS)
24
CFLAGS += -DHOST_$(XEN_OS)
(-)a/tools/xenstore/Makefile (-1 lines)
Lines 4-10 Link Here
4
MAJOR = 3.0
4
MAJOR = 3.0
5
MINOR = 0
5
MINOR = 0
6
6
7
CFLAGS += -Werror
8
CFLAGS += -I.
7
CFLAGS += -I.
9
CFLAGS += $(CFLAGS_libxenctrl)
8
CFLAGS += $(CFLAGS_libxenctrl)
10
9
(-)a/tools/xenstore/xenstored_core.c (-1 / +1 lines)
Lines 865-871 Link Here
865
{
865
{
866
	unsigned int offset, datalen;
866
	unsigned int offset, datalen;
867
	struct node *node;
867
	struct node *node;
868
	char *vec[1] = { NULL }; /* gcc4 + -W + -Werror fucks code. */
868
	char *vec[1] = { NULL }; /* gcc4 + -W + -Werror demonstrates the pointlessness of -Werror. (expletive removed) */
869
	char *name;
869
	char *name;
870
870
871
	/* Extra "strings" can be created by binary data. */
871
	/* Extra "strings" can be created by binary data. */
(-)a/tools/xentrace/Makefile (-2 lines)
Lines 1-8 Link Here
1
XEN_ROOT=../..
1
XEN_ROOT=../..
2
include $(XEN_ROOT)/tools/Rules.mk
2
include $(XEN_ROOT)/tools/Rules.mk
3
3
4
CFLAGS  += -Werror
5
6
CFLAGS  += $(CFLAGS_libxenctrl)
4
CFLAGS  += $(CFLAGS_libxenctrl)
7
LDFLAGS += $(LDFLAGS_libxenctrl)
5
LDFLAGS += $(LDFLAGS_libxenctrl)
8
6
(-)a/xen/arch/ia64/Rules.mk (-1 / +1 lines)
Lines 68-74 Link Here
68
CFLAGS += -DCONFIG_XEN_IA64_TLBFLUSH_CLOCK
68
CFLAGS += -DCONFIG_XEN_IA64_TLBFLUSH_CLOCK
69
endif
69
endif
70
ifeq ($(no_warns),y)
70
ifeq ($(no_warns),y)
71
CFLAGS	+= -Wa,--fatal-warnings -Werror -Wno-uninitialized
71
CFLAGS	+= -Wa,--fatal-warnings -Wno-uninitialized
72
endif
72
endif
73
ifneq ($(vhpt_disable),y)
73
ifneq ($(vhpt_disable),y)
74
CFLAGS += -DVHPT_ENABLED=1
74
CFLAGS += -DVHPT_ENABLED=1
(-)a/xen/arch/x86/Rules.mk (-1 / +1 lines)
Lines 17-23 Link Here
17
endif
17
endif
18
18
19
CFLAGS += -fno-builtin -fno-common
19
CFLAGS += -fno-builtin -fno-common
20
CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
20
CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe
21
CFLAGS += -I$(BASEDIR)/include 
21
CFLAGS += -I$(BASEDIR)/include 
22
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
22
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
23
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
23
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
(-)a/xen/arch/x86/boot/build32.mk (-1 / +1 lines)
Lines 8-14 Link Here
8
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
8
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
9
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
9
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
10
10
11
CFLAGS += -Werror -fno-builtin -msoft-float
11
CFLAGS += -fno-builtin -msoft-float
12
12
13
# NB. awk invocation is a portable alternative to 'head -n -1'
13
# NB. awk invocation is a portable alternative to 'head -n -1'
14
%.S: %.bin
14
%.S: %.bin

Return to bug 260880