Changeset 16333 in vbox
- Timestamp:
- Jan 28, 2009 8:28:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r16290 r16333 527 527 VBOX_WITH_VRDP_RDESKTOP= 528 528 VBOX_WITH_PDM_ASYNC_COMPLETION= 529 ifeq ($(KBUILD_TARGET_ARCH),amd64) 530 # Temporary: 531 VBOX_WITH_QTGUI= 532 VBOX_WITH_MAIN= 533 VBOX_WITH_DEBUGGER_GUI= 534 VBOX_WITH_VBOXSDL= 535 VBOX_WITH_VBOXBFE= 536 VBOX_WITH_WEBSERVICES= 537 endif 529 538 endif 530 539 … … 813 822 endif 814 823 ifeq ($(VBOX_LDR_FMT),macho) 815 VBOX_ASFLAGS_FMT = -f macho -DASM_FORMAT_MACHO 824 ifeq ($(KBUILD_TARGET_ARCH),x86) 825 VBOX_ASFLAGS_FMT = -f macho32 -DASM_FORMAT_MACHO 826 else 827 VBOX_ASFLAGS_FMT = -f macho64 -DASM_FORMAT_MACHO 828 endif 816 829 VBOX_ASFLAGS_DBFINFO = -g dwarf2 817 830 endif … … 837 850 endif 838 851 ifeq ($(VBOX_LDR_FMT32),macho) 839 VBOX_ASFLAGS_FMT32 = -f macho -DASM_FORMAT_MACHO852 VBOX_ASFLAGS_FMT32 = -f macho32 -DASM_FORMAT_MACHO 840 853 VBOX_ASFLAGS_DBFINFO32 = -g dwarf2 841 854 endif … … 1356 1369 # 1357 1370 ifeq ($(KBUILD_TARGET),darwin) 1358 VBOX_DEF_MACOSX_VERSION_MIN ?= 10.4 1371 ifeq ($(KBUILD_TARGET_ARCH),x86) 1372 VBOX_DEF_MACOSX_VERSION_MIN ?= 10.4 1373 else 1374 VBOX_DEF_MACOSX_VERSION_MIN ?= 10.6 1375 endif 1359 1376 ifeq ($(VBOX_DEF_MACOSX_VERSION_MIN),10.4) 1360 1377 ifeq ($(origin VBOX_DARWIN_CLASSIC_LINKER),undefined) … … 1392 1409 VBOX_DARWIN_DEF_SDK_10_5_OBJCFLAGS := -mmacosx-version-min=10.5 -isysroot $(VBOX_PATH_MACOSX_SDK_10_5) 1393 1410 VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS := -mmacosx-version-min=10.5 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_5) 1411 1412 # specific versions. 1413 VBOX_PATH_MACOSX_SDK_10_6 ?= /Developer/SDKs/MacOSX10.6.sdk 1414 VBOX_DARWIN_DEF_SDK_10_6_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1060 MAC_OS_X_VERSION_MAX_ALLOWED=1060 1415 VBOX_DARWIN_DEF_SDK_10_6_CFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6) 1416 VBOX_DARWIN_DEF_SDK_10_6_CXXFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6) 1417 VBOX_DARWIN_DEF_SDK_10_6_OBJCFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6) 1418 VBOX_DARWIN_DEF_SDK_10_6_LDFLAGS := -mmacosx-version-min=10.6 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_6) 1394 1419 1395 1420 endif # target=darwin … … 1899 1924 TEMPLATE_VBOXGC_TOOL = GXX4MACHO 1900 1925 TEMPLATE_VBOXGC_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) 1901 TEMPLATE_VBOXGC_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) - nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing1902 TEMPLATE_VBOXGC_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) - nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing1903 TEMPLATE_VBOXGC_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) - nostdlib1926 TEMPLATE_VBOXGC_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -m32 -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing 1927 TEMPLATE_VBOXGC_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -m32 -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing 1928 TEMPLATE_VBOXGC_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -m32 -nostdlib 1904 1929 #TEMPLATE_VBOXGC_LDFLAGS.release = -Wl,-S ??? 1905 1930 endif … … 2018 2043 TEMPLATE_VBOXR0_TOOL = GXX4MACHO 2019 2044 TEMPLATE_VBOXR0_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) 2020 TEMPLATE_VBOXR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 2021 TEMPLATE_VBOXR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing 2022 TEMPLATE_VBOXR0_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -nostdlib 2045 TEMPLATE_VBOXR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \ 2046 -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \ 2047 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow 2048 TEMPLATE_VBOXR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a 2049 TEMPLATE_VBOXR0_CXXFLAGS.x86 = -m32 2050 TEMPLATE_VBOXR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \ 2051 -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \ 2052 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow 2053 TEMPLATE_VBOXR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a 2054 TEMPLATE_VBOXR0_CFLAGS.x86 = -m32 2055 TEMPLATE_VBOXR0_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -nostdlib 2023 2056 #TEMPLATE_VBOXR0_LDFLAGS.release = -Wl,-S ??? 2057 TEMPLATE_VBOXR0_LDFLAGS.amd64 = -m64 2058 TEMPLATE_VBOXR0_LDFLAGS.x86 = -m32 2024 2059 endif 2025 2060 … … 2106 2141 TEMPLATE_VBOXR0DRV_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) \ 2107 2142 -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \ 2108 -fno-keep-inline-functions -f orce_cpusubtype_ALL -fno-exceptions -msoft-float -static \2143 -fno-keep-inline-functions -fno-exceptions -msoft-float -static \ 2109 2144 -fapple-kext -fno-rtti -fcheck-new 2145 ## @todo check what Xcode does wrt -mno-sse -mno-mmx -mno-sse2 -mno-3dnow on amd64. 2146 TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64 = -m64 -mno-red-zone 2147 TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = -m32 -force_cpusubtype_ALL 2110 2148 TEMPLATE_VBOXR0DRV_CXXFLAGS.release = $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fasm-blocks 2111 2149 TEMPLATE_VBOXR0DRV_CXXFLAGS.profile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release) … … 2113 2151 TEMPLATE_VBOXR0DRV_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) \ 2114 2152 -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \ 2115 -fno-keep-inline-functions -f orce_cpusubtype_ALL -fno-exceptions -msoft-float -static \2153 -fno-keep-inline-functions -fno-exceptions -msoft-float -static \ 2116 2154 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations 2155 TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-red-zone 2156 TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -force_cpusubtype_ALL 2117 2157 TEMPLATE_VBOXR0DRV_CFLAGS.release = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release) 2118 2158 TEMPLATE_VBOXR0DRV_CFLAGS.profile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.profile) 2119 2159 TEMPLATE_VBOXR0DRV_CFLAGS.kprofile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile) 2120 2160 TEMPLATE_VBOXR0DRV_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 -keep_private_extern 2161 TEMPLATE_VBOXR0DRV_LDFLAGS.amd64 = -m64 2162 TEMPLATE_VBOXR0DRV_LDFLAGS.x86 = -m32 2121 2163 TEMPLATE_VBOXR0DRV_LIBS = kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC) 2122 2164
Note:
See TracChangeset
for help on using the changeset viewer.