Changeset 76486 in vbox
- Timestamp:
- Dec 27, 2018 3:24:47 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r76485 r76486 4252 4252 TEMPLATE_VBoxRc_CXXFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) -fno-rtti $(VBOX_GCC_IPRT_FMT_CHECK) 4253 4253 TEMPLATE_VBoxRc_CFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_IPRT_FMT_CHECK) 4254 if $(VBOX_GCC32_VERSION_CC) < 30400 4255 TEMPLATE_VBoxRc_DEFS += RT_WITHOUT_PRAGMA_ONCE 4256 endif 4254 4257 ifeq ($(KBUILD_TARGET),solaris) 4255 4258 TEMPLATE_VBoxRc_LDFLAGS = -r … … 4279 4282 ifeq ($(VBOX_LDR_FMT32),lx) 4280 4283 TEMPLATE_VBoxRc_TOOL = GXX3OMF 4284 if $(VBOX_GCC_VERSION_CC) < 30400 4285 TEMPLATE_VBoxRc_DEFS += RT_WITHOUT_PRAGMA_ONCE 4286 endif 4281 4287 TEMPLATE_VBoxRc_CXXFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-exceptions -fno-rtti 4282 4288 TEMPLATE_VBoxRc_CFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-exceptions … … 4395 4401 TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables -ffreestanding 4396 4402 TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables 4403 if $(VBOX_GCC_VERSION_CC) < 30400 4404 TEMPLATE_VBoxR0_DEFS += RT_WITHOUT_PRAGMA_ONCE 4405 endif 4397 4406 ifeq ($(KBUILD_TARGET),solaris) 4398 4407 TEMPLATE_VBoxR0_LDFLAGS = -r … … 4446 4455 TEMPLATE_VBoxR0_CFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions -fno-common 4447 4456 TEMPLATE_VBoxR0_CXXFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions -fno-common -fno-rtti 4457 if $(VBOX_GCC_VERSION_CC) < 30400 4458 TEMPLATE_VBoxR0_DEFS += RT_WITHOUT_PRAGMA_ONCE 4459 endif 4448 4460 TEMPLATE_VBoxR0_LDFLAGS = -nostdlib -Zdll 4449 4461 TEMPLATE_VBoxR0_LIBS = \ … … 4698 4710 TEMPLATE_VBOXR0DRV_TOOL = $(VBOX_GCC_TOOL) 4699 4711 TEMPLATE_VBOXR0DRV_DEFS += _MACHDEP _KERNEL _STRICT_STDC 4712 if $(VBOX_GCC_VERSION_CC) < 30400 4713 TEMPLATE_VBOXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE 4714 endif 4700 4715 TEMPLATE_VBOXR0DRV_INCS = $(VBOX_SOLARIS_SYS_INCS) 4701 4716 TEMPLATE_VBOXR0DRV_LDFLAGS = -r -dy … … 4754 4769 TEMPLATE_VBOXR0DRV_LDTOOL = FREEBSDKMODLD 4755 4770 TEMPLATE_VBOXR0DRV_DEFS += _KERNEL KLD_MODULE 4771 if $(VBOX_GCC_VERSION_CC) < 30400 4772 TEMPLATE_VBOXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE 4773 endif 4756 4774 TEMPLATE_VBOXR0DRV_INCS = \ 4757 4775 $(VBOX_FREEBSD_SRC) \ … … 4836 4854 TEMPLATE_VBOXR0DRV_TOOL = $(VBOX_GCC_TOOL) 4837 4855 TEMPLATE_VBOXR0DRV_DEFS += _KERNEL _MODULE 4856 if $(VBOX_GCC_VERSION_CC) < 30400 4857 TEMPLATE_VBOXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE 4858 endif 4838 4859 TEMPLATE_VBOXR0DRV_INCS = \ 4839 4860 $(VBOX_NETBSD_SRC)/sys \ … … 4895 4916 TEMPLATE_VBOXR0DRV_LDTOOL = $(VBOX_GCC_TOOL) 4896 4917 TEMPLATE_VBOXR0DRV_DEFS = _KERNEL_MODE=1 _STRICT_STDC IN_RING0 IN_RT_R0 4918 if $(VBOX_GCC_VERSION_CC) < 30400 4919 TEMPLATE_VBOXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE 4920 endif 4897 4921 TEMPLATE_VBOXR0DRV_INCS = $(VBOX_HAIKU_SYS_INCS) 4898 4922 #TODO: sort this out … … 5037 5061 else # the gcc guys 5038 5062 TEMPLATE_VBOXR3EXE_TOOL = $(VBOX_GCC_TOOL) 5063 if $(VBOX_GCC_VERSION_CC) < 30400 5064 TEMPLATE_VBOXR3EXE_DEFS += RT_WITHOUT_PRAGMA_ONCE 5065 endif 5039 5066 TEMPLATE_VBOXR3EXE_CXXFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) \ 5040 5067 $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_IPRT_FMT_CHECK) … … 5782 5809 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.kprofile = $(TEMPLATE_VBoxNoCrtGccLib_CFLAGS.release) 5783 5810 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.darwin = -static 5784 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS = $(filter-out -Werror-implicit-function-declaration,$(TEMPLATE_VBoxNoCrtGccLib_C XXFLAGS))5785 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxNoCrtGccLib_C XXFLAGS.$(KBUILD_TARGET))5786 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_VBoxNoCrtGccLib_C XXFLAGS.$(KBUILD_TARGET_ARCH))5787 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS = $( filter-out -Werror-implicit-function-declaration,$(TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS))5788 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxNoCrtGccLib_ PCHFLAGS.$(KBUILD_TARGET))5789 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS.$(KBUILD_TARGET_ARCH))5811 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS = $(filter-out -Werror-implicit-function-declaration,$(TEMPLATE_VBoxNoCrtGccLib_CFLAGS)) 5812 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxNoCrtGccLib_CFLAGS.$(KBUILD_TARGET)) 5813 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_VBoxNoCrtGccLib_CFLAGS.$(KBUILD_TARGET_ARCH)) 5814 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS = $(TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS) 5815 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET)) 5816 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET_ARCH)) 5790 5817 TEMPLATE_VBoxNoCrtGccLib_INCS = $(PATH_ROOT)/include/iprt/nocrt 5791 5818 … … 5802 5829 # (Drop all '-g' options as we're unable to strip the debug info.) 5803 5830 TEMPLATE_VBoxNoCrtGccLib_TOOL = $(VBOX_GCC_TOOL) 5831 if $(VBOX_GCC_VERSION_CC) < 30400 5832 TEMPLATE_VBoxNoCrtGccLib_DEFS += RT_WITHOUT_PRAGMA_ONCE 5833 endif 5804 5834 TEMPLATE_VBoxNoCrtGccLib_ASTOOL = $(VBOX_ASTOOL) 5805 5835 TEMPLATE_VBoxNoCrtGccLib_ASFLAGS = $(VBOX_ASFLAGS) … … 5815 5845 # The use of --exclude-libs ALL is to avoid confusing the linux ld.so. 5816 5846 TEMPLATE_VBoxNoCrtGccLib_TOOL = $(VBOX_GCC_TOOL) 5847 if $(VBOX_GCC_VERSION_CC) < 30400 5848 TEMPLATE_VBoxNoCrtGccLib_DEFS += RT_WITHOUT_PRAGMA_ONCE 5849 endif 5817 5850 TEMPLATE_VBoxNoCrtGccLib_ASTOOL = $(VBOX_ASTOOL) 5818 5851 TEMPLATE_VBoxNoCrtGccLib_ASFLAGS = $(VBOX_ASFLAGS) … … 5934 5967 5935 5968 TEMPLATE_VBOXMAINEXE_TOOL = $(VBOX_GCC_TOOL) 5969 if $(VBOX_GCC_VERSION_CC) < 30400 5970 TEMPLATE_VBOXMAINEXE_DEFS += RT_WITHOUT_PRAGMA_ONCE 5971 endif 5936 5972 TEMPLATE_VBOXMAINEXE_CXXFLAGS = -g $(VBOX_GCC_pipe) \ 5937 5973 $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_Wno-multistatement-macros) $(VBOX_GCC_Wno-class-memaccess) -Wshadow \ … … 6506 6542 else # the gcc guys: 6507 6543 TEMPLATE_VBOXQTGUIEXE_TOOL = $(VBOX_GCC_TOOL) 6544 if $(VBOX_GCC_VERSION_CC) < 30400 6545 TEMPLATE_VBOXQTGUIEXE_DEFS += RT_WITHOUT_PRAGMA_ONCE 6546 endif 6508 6547 TEMPLATE_VBOXQTGUIEXE_DEFS.linux = _REENTRANT 6509 6510 6548 TEMPLATE_VBOXQTGUIEXE_DEFS.solaris = _REENTRANT 6511 6549 … … 6721 6759 # (gcc of some kind ) 6722 6760 TEMPLATE_VBoxBldProg_TOOL = GXX3 6761 if $(VBOX_GCC_VERSION_CC) < 30400 6762 TEMPLATE_VBoxBldProg_DEFS += RT_WITHOUT_PRAGMA_ONCE 6763 endif 6723 6764 TEMPLATE_VBoxBldProg_CFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) 6724 6765 ifdef VBOX_WITH_NO_GCC_WARNING_POLICY
Note:
See TracChangeset
for help on using the changeset viewer.