- Timestamp:
- Jun 14, 2009 12:25:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r20502 r20547 1112 1112 VBOX_GCC_PEDANTIC ?= -pedantic $(VBOX_GCC_WARN) -Wno-long-long 1113 1113 ifeq ($(KBUILD_TYPE),debug) 1114 VBOX_GCC_FP ?= -fno-omit-frame-pointer 1115 VBOX_GCC_OPT ?= -O0 1116 VBOX_VCC_FP ?= -Oy- 1117 VBOX_VCC_OPT ?= 1114 VBOX_GCC_FP ?= -fno-omit-frame-pointer 1115 VBOX_GCC_OPT ?= -O0 1116 VBOX_VCC_FP ?= -Oy- 1117 VBOX_VCC_OPT ?= 1118 VBOX_GCC_R0_FP ?= -fno-omit-frame-pointer 1119 VBOX_GCC_R0_OPT ?= -O2 1120 VBOX_VCC_R0_FP ?= -Oy- 1121 VBOX_VCC_R0_OPT ?= 1118 1122 VBOX_GCC_GC_FP ?= -fno-omit-frame-pointer 1119 VBOX_GCC_GC_OPT ?= -O 01123 VBOX_GCC_GC_OPT ?= -O2 1120 1124 VBOX_VCC_GC_FP ?= -Oy- 1121 1125 VBOX_VCC_GC_OPT ?= … … 1123 1127 # We should use -fomit-frame-pointer for GCC / -Oy for VCC. 1124 1128 # -funwind-tables provides support for backtraces in gdb then. 1125 VBOX_GCC_FP ?= -fno-omit-frame-pointer1126 VBOX_GCC_OPT ?= -O2 $(VBOX_GCC_mtune-generic)1127 VBOX_VCC_FP ?= -Oy-1129 VBOX_GCC_FP ?= -fno-omit-frame-pointer 1130 VBOX_GCC_OPT ?= -O2 $(VBOX_GCC_mtune-generic) 1131 VBOX_VCC_FP ?= -Oy- 1128 1132 ifdef VBOX_USE_VCC80 1129 VBOX_VCC_OPT ?= -O2 -GS-1133 VBOX_VCC_OPT ?= -O2 -GS- 1130 1134 else 1131 VBOX_VCC_OPT ?= -Ogitb2 1135 VBOX_VCC_OPT ?= -Ogitb2 1136 endif 1137 VBOX_GCC_R0_FP ?= -fno-omit-frame-pointer 1138 VBOX_GCC_R0_OPT ?= -O2 $(VBOX_GCC_mtune-generic) 1139 VBOX_VCC_R0_FP ?= -Oy- 1140 ifdef VBOX_USE_VCC80 1141 VBOX_VCC_R0_OPT ?= -O2 -GS- 1142 else 1143 VBOX_VCC_R0_OPT ?= -Ogitb2 1132 1144 endif 1133 1145 VBOX_GCC_GC_FP ?= -fno-omit-frame-pointer … … 2102 2114 ifeq ($(VBOX_LDR_FMT),elf) 2103 2115 TEMPLATE_VBOXR0_TOOL = $(VBOX_GCC_TOOL) 2104 TEMPLATE_VBOXR0_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden)2105 TEMPLATE_VBOXR0_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -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)2116 TEMPLATE_VBOXR0_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) 2117 TEMPLATE_VBOXR0_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-rtti -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) 2106 2118 TEMPLATE_VBOXR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding 2107 2119 TEMPLATE_VBOXR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables … … 2124 2136 TEMPLATE_VBOXR0_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) 2125 2137 TEMPLATE_VBOXR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \ 2126 -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \2138 -fno-common -msoft-float -static -fno-rtti -fno-exceptions -O2 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \ 2127 2139 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector 2128 2140 TEMPLATE_VBOXR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables 2129 2141 TEMPLATE_VBOXR0_CXXFLAGS.x86 = -m32 2130 2142 TEMPLATE_VBOXR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \ 2131 -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \2143 -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \ 2132 2144 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector 2133 2145 TEMPLATE_VBOXR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables … … 2141 2153 ifeq ($(VBOX_LDR_FMT),lx) 2142 2154 TEMPLATE_VBOXR0_TOOL = GXX3OMF 2143 TEMPLATE_VBOXR0_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) -fno-strict-aliasing2144 TEMPLATE_VBOXR0_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-rtti -fno-exceptions $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) -fno-strict-aliasing2155 TEMPLATE_VBOXR0_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing 2156 TEMPLATE_VBOXR0_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-rtti -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing 2145 2157 TEMPLATE_VBOXR0_LDFLAGS = -nostdlib -Zdll 2146 2158 TEMPLATE_VBOXR0_LIBS = \ … … 2188 2200 TEMPLATE_VBOXR0DRV_CFLAGS = -nostdinc -iwithprefix include \ 2189 2201 $(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare \ 2190 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-common2202 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-common 2191 2203 TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -mpreferred-stack-boundary=2 -msoft-float 2192 2204 TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \ … … 2208 2220 ifeq ($(KBUILD_TARGET),os2) 2209 2221 TEMPLATE_VBOXR0DRV_TOOL = GXX3OMF 2210 TEMPLATE_VBOXR0DRV_CXXFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions2211 TEMPLATE_VBOXR0DRV_CFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) -fno-strict-aliasing2222 TEMPLATE_VBOXR0DRV_CXXFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions 2223 TEMPLATE_VBOXR0DRV_CFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing 2212 2224 TEMPLATE_VBOXR0DRV_LIBS = $(VBOX_GCC_LIBGCC) 2213 2225 # wlink thinks physdevice doesn't need fixups and should have a stack - stupid! … … 2222 2234 -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \ 2223 2235 -fno-keep-inline-functions -fno-exceptions -msoft-float \ 2224 -fapple-kext -fno-rtti -fcheck-new -force_cpusubtype_ALL 2236 -fapple-kext -fno-rtti -fcheck-new -force_cpusubtype_ALL \ 2237 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fasm-blocks 2225 2238 TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-2 2226 2239 TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = -m32 -static 2227 TEMPLATE_VBOXR0DRV_CXXFLAGS.release = $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fasm-blocks2228 TEMPLATE_VBOXR0DRV_CXXFLAGS.profile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)2229 TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)2230 2240 TEMPLATE_VBOXR0DRV_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) \ 2231 2241 -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \ 2232 2242 -fno-keep-inline-functions -fno-exceptions -msoft-float \ 2233 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -force_cpusubtype_ALL 2243 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -force_cpusubtype_ALL \ 2244 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fasm-blocks 2234 2245 TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-2 2235 2246 TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -static 2236 TEMPLATE_VBOXR0DRV_CFLAGS.release = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)2237 TEMPLATE_VBOXR0DRV_CFLAGS.profile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.profile)2238 TEMPLATE_VBOXR0DRV_CFLAGS.kprofile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile)2239 2247 TEMPLATE_VBOXR0DRV_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 -keep_private_extern 2240 2248 TEMPLATE_VBOXR0DRV_LDFLAGS.amd64 = -m64 -Xlinker -kext … … 2320 2328 -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs \ 2321 2329 -O2 -fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \ 2322 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) \2330 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ 2323 2331 -nostdinc -std=c99 2324 2332 TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 … … 2329 2337 $(VBOX_GCC_WARN) -Wpointer-arith -Winline \ 2330 2338 -O2 -fno-format-extensions -fno-strict-aliasing -fno-common -finline-limit=8000 \ 2331 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_ OPT) $(VBOX_GCC_FP) \2339 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ 2332 2340 -nostdinc 2333 2341 TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86)
Note:
See TracChangeset
for help on using the changeset viewer.