- Timestamp:
- Oct 6, 2008 1:44:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r12943 r13006 1037 1037 # Compiler optimization flags. 1038 1038 # 1039 VBOX_GCC_WARN ?= -Wall $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) -Wno-unused -Wno-trigraphs 1039 1040 ifeq ($(KBUILD_TYPE),debug) 1040 1041 VBOX_GCC_FP ?= -fno-omit-frame-pointer … … 1065 1066 VBOX_VCC_GC_OPT ?= -Ogitb2 1066 1067 endif 1068 endif 1069 ifeq ($(KBUILD_TARGET_ARCH),x86) 1070 VBOX_GCC_OPT <= -march=i586 1067 1071 endif 1068 1072 … … 1441 1445 $(APPEND) '$@' 'VBOX_GCC_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)' 1442 1446 $(APPEND) '$@' 'VBOX_GCC_Wno-pointer-sign ?= $(call VBOX_GCC_CHECK_CC,-Wno-pointer-sign,)' 1447 # -Wextra produces additional useful warnings but includes -Wno-missing-field-initializers (too noisy) 1448 $(APPEND) '$@' 'VBOX_GCC_Wextra ?= $(call VBOX_GCC_CHECK_CC,-Wextra,)' 1449 $(APPEND) '$@' 'VBOX_GCC_Wno-missing-field-initializers ?= $(call VBOX_GCC_CHECK_CC,-Wno-missing-field-initializers,)' 1443 1450 $(APPEND) '$@' 'VBOX_GCC_Wno-variadic-macros ?= $(call VBOX_GCC_CHECK_CXX,-Wno-variadic-macros,)' 1444 1451 $(APPEND) '$@' 'VBOX_GCC_Wno-invalid-offsetof ?= $(call VBOX_GCC_CHECK_CXX,-Wno-invalid-offsetof,)' 1445 $(APPEND) '$@' 'VBOX_GCC_Wno-extra ?= $(call VBOX_GCC_CHECK_CXX,-Wno-extra)'1446 1452 $(APPEND) '$@' 'VBOX_GCC_fno-stack-protector ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)' 1447 1453 # Produce code optimized for the most common IA32/AMD64/EM64T processors. Introduced with gcc version 4.2. … … 1862 1868 ifeq ($(VBOX_LDR_FMT32),elf) 1863 1869 TEMPLATE_VBOXGC_TOOL = $(VBOX_GCC32_TOOL) 1864 TEMPLATE_VBOXGC_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden)1865 TEMPLATE_VBOXGC_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC32_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden)1870 TEMPLATE_VBOXGC_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) 1871 TEMPLATE_VBOXGC_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC32_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) 1866 1872 ifeq ($(KBUILD_TARGET),solaris) 1867 1873 TEMPLATE_VBOXGC_LDFLAGS = -r … … 1881 1887 TEMPLATE_VBOXGC_TOOL = GXX4MACHO 1882 1888 TEMPLATE_VBOXGC_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) 1883 TEMPLATE_VBOXGC_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing1884 TEMPLATE_VBOXGC_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -Wno-trigraphs-Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing1889 TEMPLATE_VBOXGC_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing 1890 TEMPLATE_VBOXGC_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing 1885 1891 TEMPLATE_VBOXGC_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -nostdlib 1886 1892 #TEMPLATE_VBOXGC_LDFLAGS.release = -Wl,-S ??? … … 1889 1895 ifeq ($(VBOX_LDR_FMT32),lx) 1890 1896 TEMPLATE_VBOXGC_TOOL = GXX3OMF 1891 TEMPLATE_VBOXGC_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing1892 TEMPLATE_VBOXGC_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC32_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing1897 TEMPLATE_VBOXGC_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing 1898 TEMPLATE_VBOXGC_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC32_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing 1893 1899 TEMPLATE_VBOXGC_LDFLAGS = -Zdll -nostdlib 1894 1900 TEMPLATE_VBOXGC_LIBS = \ … … 1964 1970 ifeq ($(VBOX_LDR_FMT),elf) 1965 1971 TEMPLATE_VBOXR0_TOOL = $(VBOX_GCC_TOOL) 1966 TEMPLATE_VBOXR0_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden)1967 TEMPLATE_VBOXR0_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden)1972 TEMPLATE_VBOXR0_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) 1973 TEMPLATE_VBOXR0_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) 1968 1974 TEMPLATE_VBOXR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding 1969 1975 TEMPLATE_VBOXR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables … … 1985 1991 TEMPLATE_VBOXR0_TOOL = GXX4MACHO 1986 1992 TEMPLATE_VBOXR0_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) 1987 TEMPLATE_VBOXR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing1988 TEMPLATE_VBOXR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing1993 TEMPLATE_VBOXR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 1994 TEMPLATE_VBOXR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 1989 1995 TEMPLATE_VBOXR0_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -nostdlib 1990 1996 #TEMPLATE_VBOXR0_LDFLAGS.release = -Wl,-S ??? … … 1993 1999 ifeq ($(VBOX_LDR_FMT),lx) 1994 2000 TEMPLATE_VBOXR0_TOOL = GXX3OMF 1995 TEMPLATE_VBOXR0_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing1996 TEMPLATE_VBOXR0_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing2001 TEMPLATE_VBOXR0_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 2002 TEMPLATE_VBOXR0_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 1997 2003 TEMPLATE_VBOXR0_LDFLAGS = -Zdll -nostdlib 1998 2004 TEMPLATE_VBOXR0_LIBS = \ … … 2039 2045 TEMPLATE_VBOXR0DRV_INCS = $(VBOX_LINUX_INCS) 2040 2046 TEMPLATE_VBOXR0DRV_CFLAGS = -nostdinc -iwithprefix include \ 2041 -Wall -Wstrict-prototypes -Wno-trigraphs $(VBOX_GCC_Wno-pointer-sign) \2047 $(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) \ 2042 2048 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-common 2043 2049 TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -mpreferred-stack-boundary=2 -msoft-float … … 2060 2066 ifeq ($(KBUILD_TARGET),os2) 2061 2067 TEMPLATE_VBOXR0DRV_TOOL = GXX3OMF 2062 TEMPLATE_VBOXR0DRV_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions2063 TEMPLATE_VBOXR0DRV_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing2068 TEMPLATE_VBOXR0DRV_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions 2069 TEMPLATE_VBOXR0DRV_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 2064 2070 TEMPLATE_VBOXR0DRV_LIBS = $(VBOX_GCC_LIBGCC) 2065 2071 # wlink thinks physdevice doesn't need fixups and should have a stack - stupid! … … 2075 2081 TEMPLATE_VBOXR0DRV_INCS += $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Kernel.framework/Headers 2076 2082 TEMPLATE_VBOXR0DRV_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) \ 2077 -g -Wall -Wno-long-long -Wno-trigraphs-pipe -fno-common -nostdinc -fno-builtin -finline \2083 -g $(VBOX_GCC_WARN) -Wno-long-long -pipe -fno-common -nostdinc -fno-builtin -finline \ 2078 2084 -fno-keep-inline-functions -force_cpusubtype_ALL -fno-exceptions -msoft-float -static \ 2079 2085 -fapple-kext -fno-rtti -fcheck-new … … 2082 2088 TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release) 2083 2089 TEMPLATE_VBOXR0DRV_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) \ 2084 -g -Wall -Wno-long-long -Wno-trigraphs-pipe -fno-common -nostdinc -fno-builtin -finline \2090 -g $(VBOX_GCC_WARN) -Wno-long-long -pipe -fno-common -nostdinc -fno-builtin -finline \ 2085 2091 -fno-keep-inline-functions -force_cpusubtype_ALL -fno-exceptions -msoft-float -static \ 2086 2092 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations … … 2105 2111 TEMPLATE_VBOXR0DRV_LDFLAGS.amd64 = -64 2106 2112 # Exclude -Wall because of solaris headers' pragma ident warnings that gcc refuses to supress. 2107 TEMPLATE_VBOXR0DRV_CFLAGS = -W no-trigraphs -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \2113 TEMPLATE_VBOXR0DRV_CFLAGS = -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \ 2108 2114 -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs \ 2109 2115 -O2 -ffreestanding -nodefaultlibs -fno-strict-aliasing -fno-common -std=c99 … … 2111 2117 TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(if $(VBOX_SOLARIS_10),,-msave-args) -mno-red-zone -mcmodel=kernel \ 2112 2118 -fno-reorder-blocks -fno-asynchronous-unwind-tables -funit-at-a-time 2113 TEMPLATE_VBOXR0DRV_CXXFLAGS = -W no-trigraphs -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \2119 TEMPLATE_VBOXR0DRV_CXXFLAGS = -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \ 2114 2120 -O2 -nodefaultlibs -fno-strict-aliasing -fno-common -fno-exceptions -fno-rtti 2115 2121 TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86) … … 2147 2153 # omitting: -Wcast-qual, -Wredundant-decls 2148 2154 TEMPLATE_VBOXR0DRV_CFLAGS = \ 2149 -Wall -Wno-trigraphs-Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \2155 $(VBOX_GCC_WARN) -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \ 2150 2156 -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs \ 2151 2157 -O2 -fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \ … … 2155 2161 TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 "Port me to amd64 FreeBSD" 2156 2162 TEMPLATE_VBOXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \ 2157 -Wall -Wno-trigraphs-Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \2163 $(VBOX_GCC_WARN) -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \ 2158 2164 -O2 -fno-format-extensions -fno-strict-aliasing -fno-common -finline-limit=8000 \ 2159 2165 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) \ … … 2239 2245 else # the gcc guys 2240 2246 TEMPLATE_VBOXR3EXE_TOOL = $(VBOX_GCC_TOOL) 2241 TEMPLATE_VBOXR3EXE_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden)2247 TEMPLATE_VBOXR3EXE_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) 2242 2248 TEMPLATE_VBOXR3EXE_CXXFLAGS.x86 = -m32 2243 2249 TEMPLATE_VBOXR3EXE_CXXFLAGS.amd64 = -m64 … … 2247 2253 $(DEBUG_L4) 2248 2254 TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile = -finstrument-functions 2249 TEMPLATE_VBOXR3EXE_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden)2255 TEMPLATE_VBOXR3EXE_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden) 2250 2256 TEMPLATE_VBOXR3EXE_CFLAGS.x86 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.x86) 2251 2257 TEMPLATE_VBOXR3EXE_CFLAGS.amd64 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.amd64) … … 2432 2438 ifneq ($(KBUILD_TARGET),win) # (only gcc) 2433 2439 TEMPLATE_VBOXR3NPEXE_TOOL = $(VBOX_GCC_TOOL) 2434 TEMPLATE_VBOXR3NPEXE_CXXFLAGS = $(filter-out -pedantic ,$(TEMPLATE_VBOXR3EXE_CXXFLAGS))2435 TEMPLATE_VBOXR3NPEXE_CFLAGS = $(filter-out -pedantic -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations ,$(TEMPLATE_VBOXR3EXE_CFLAGS))2440 TEMPLATE_VBOXR3NPEXE_CXXFLAGS = $(filter-out -pedantic -Wno-sign-compare,$(TEMPLATE_VBOXR3EXE_CXXFLAGS)) 2441 TEMPLATE_VBOXR3NPEXE_CFLAGS = $(filter-out -pedantic -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wno-sign-compare,$(TEMPLATE_VBOXR3EXE_CFLAGS)) 2436 2442 endif 2437 2443 … … 2465 2471 TEMPLATE_VBOXNOCRTGCC_DEFS = IN_RING3 IPRT_NO_CRT $(ARCH_BITS_DEFS) 2466 2472 TEMPLATE_VBOXNOCRTGCC_ASDEFS = ASM_CALL64_GCC 2467 TEMPLATE_VBOXNOCRTGCC_CFLAGS = -nostdinc -fno-strict-aliasing -fno-math-errno -Wall2473 TEMPLATE_VBOXNOCRTGCC_CFLAGS = -nostdinc -fno-strict-aliasing -fno-math-errno $(VBOX_GCC_WARN) 2468 2474 TEMPLATE_VBOXNOCRTGCC_CFLAGS.x86 = -m32 2469 2475 TEMPLATE_VBOXNOCRTGCC_CFLAGS.amd64 = -m64 -mcmodel=medium -fno-common … … 2589 2595 2590 2596 TEMPLATE_VBOXMAINEXE_TOOL = $(VBOX_GCC_TOOL) 2591 TEMPLATE_VBOXMAINEXE_CXXFLAGS = -g -Wall -Wno-long-long -Wno-trigraphs-pipe -Wno-non-virtual-dtor -fshort-wchar -fpermissive -fexceptions -frtti $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden)2597 TEMPLATE_VBOXMAINEXE_CXXFLAGS = -g $(VBOX_GCC_WARN) -Wno-long-long -pipe -Wno-non-virtual-dtor -fshort-wchar -fpermissive -fexceptions -frtti $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) 2592 2598 TEMPLATE_VBOXMAINEXE_CXXFLAGS.x86 = -m32 2593 2599 TEMPLATE_VBOXMAINEXE_CXXFLAGS.amd64 = -m64 2594 2600 TEMPLATE_VBOXMAINEXE_CXXFLAGS.kprofile = -finstrument-functions 2595 TEMPLATE_VBOXMAINEXE_CFLAGS = -g -Wall -Wno-long-long -Wno-trigraphs-pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden)2601 TEMPLATE_VBOXMAINEXE_CFLAGS = -g $(VBOX_GCC_WARN) -Wno-long-long -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden) 2596 2602 TEMPLATE_VBOXMAINEXE_CFLAGS.x86 = -m32 2597 2603 TEMPLATE_VBOXMAINEXE_CFLAGS.amd64 = -m64 … … 2820 2826 $(LIB_SDL_INC) 2821 2827 TEMPLATE_VBOXQTGUIEXE_CXXFLAGS = \ 2822 -pipe -Wall -W-frtti -fno-exceptions -Wno-non-virtual-dtor \2828 -pipe $(VBOX_GCC_WARN) -frtti -fno-exceptions -Wno-non-virtual-dtor \ 2823 2829 -Wno-long-long -fshort-wchar -fno-strict-aliasing \ 2824 2830 $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) … … 3047 3053 $(LIB_SDL_INC) 3048 3054 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \ 3049 -g -pipe -Wall -W-frtti -fno-exceptions -Wno-non-virtual-dtor \3055 -g -pipe $(VBOX_GCC_WARN) -frtti -fno-exceptions -Wno-non-virtual-dtor \ 3050 3056 -Wno-long-long -fshort-wchar -fno-strict-aliasing \ 3051 3057 $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) … … 3200 3206 # (gcc of some kind ) 3201 3207 TEMPLATE_VBOXBLDPROG_TOOL = GXX3 3202 TEMPLATE_VBOXBLDPROG_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs$(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations3208 TEMPLATE_VBOXBLDPROG_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long $(VBOX_GCC_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations 3203 3209 TEMPLATE_VBOXBLDPROG_CFLAGS.x86 = -m32 3204 3210 TEMPLATE_VBOXBLDPROG_CFLAGS.amd64 = -m64 … … 3206 3212 TEMPLATE_VBOXBLDPROG_CFLAGS.profile = $(TEMPLATE_VBOXBLDPROG_CXXFLAGS.profile) 3207 3213 TEMPLATE_VBOXBLDPROG_CFLAGS.kprofile = $(TEMPLATE_VBOXBLDPROG_CXXFLAGS.kprofile) 3208 TEMPLATE_VBOXBLDPROG_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs-pipe3214 TEMPLATE_VBOXBLDPROG_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long -pipe 3209 3215 TEMPLATE_VBOXBLDPROG_CXXFLAGS.x86 = -m32 3210 3216 TEMPLATE_VBOXBLDPROG_CXXFLAGS.amd64 = -m64 … … 3270 3276 TEMPLATE_VBOXLNXHOSTR3EXE_ASFLAGS = $(VBOX_ASFLAGS) 3271 3277 TEMPLATE_VBOXLNXHOSTR3EXE_DEFS = IN_RING3 $(ARCH_BITS_DEFS) 3272 TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs-pipe $(VBOX_GCC_fno-stack-protector)3278 TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long -pipe $(VBOX_GCC_fno-stack-protector) 3273 3279 TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS.debug = -fno-inline 3274 3280 TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS.release = -O2 -fno-omit-frame-pointer -fno-strict-aliasing … … 3279 3285 TEMPLATE_VBOXLNXHOSTR3EXE_CFLAGS.profile = $(TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS.profile) 3280 3286 TEMPLATE_VBOXLNXHOSTR3EXE_CFLAGS.kprofile = $(TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS.kprofile) 3281 TEMPLATE_VBOXLNXHOSTR3EXE_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs-pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_fno-stack-protector)3287 TEMPLATE_VBOXLNXHOSTR3EXE_CFLAGS = -g $(VBOX_GCC_WARN) -pedantic -Wno-long-long -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_fno-stack-protector) 3282 3288 TEMPLATE_VBOXLNXHOSTR3EXE_LIBS = pthread m rt dl 3283 3289
Note:
See TracChangeset
for help on using the changeset viewer.