Changeset 46021 in vbox for trunk/Config.kmk
- Timestamp:
- May 13, 2013 3:09:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r45923 r46021 4788 4788 TEMPLATE_VBOXGUESTR3EXE_LNK_DEPS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) 4789 4789 else # the gcc guys 4790 ifneq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),) 4791 ifeq ($(KBUILD_TARGET),linux) 4792 VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE := 4793 endif 4794 endif 4790 4795 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VBOXR3EXE 4791 4796 TEMPLATE_VBOXGUESTR3EXE_TOOL := $(subst GXX,GCC,$(TEMPLATE_VBOXR3EXE_TOOL)) 4792 4797 TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS = $(TEMPLATE_VBOXR3EXE_CXXFLAGS) -fno-exceptions 4798 TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VBOXR3EXE_LDFLAGS.linux)) 4799 ifneq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),) 4800 ifeq ($(KBUILD_TARGET_ARCH),x86) 4801 TEMPLATE_VBOXGUESTR3EXE_TOOL := XGCCX86REDHATLINUX 4802 else ifeq ($(KBUILD_TARGET_ARCH),amd64) 4803 TEMPLATE_VBOXGUESTR3EXE_TOOL := XGCCAMD64LINUXGNU 4804 endif 4805 TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS := $(filter-out $(VBOX_GCC_pipe) $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_Wno-delete-non-virtual-dtor) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden),$(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS)) -pipe 4806 TEMPLATE_VBOXGUESTR3EXE_CFLAGS := $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) 4807 TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux := $(filter-out $(VBOX_GCC_ORIGIN_OPT) $(VBOX_LD_as_needed),$(TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux)) 4808 endif 4793 4809 TEMPLATE_VBOXGUESTR3EXE_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%,$(TEMPLATE_VBOXR3EXE_LDFLAGS)) 4794 TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VBOXR3EXE_LDFLAGS.linux))4795 4810 endif 4796 4811 TEMPLATE_VBOXGUESTR3EXE_INST = $(INST_ADDITIONS) … … 4851 4866 TEMPLATE_VBoxGuestR3Dll_CXXFLAGS += $(VBOX_VCC_WERR) 4852 4867 TEMPLATE_VBoxGuestR3Dll_LDFLAGS += $(VBOX_VCC_LD_WERR) 4853 else 4868 else ifeq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),) 4854 4869 TEMPLATE_VBoxGuestR3Dll_CFLAGS += $(VBOX_GCC_WERR) 4855 4870 TEMPLATE_VBoxGuestR3Dll_CXXFLAGS += $(VBOX_GCC_WERR) … … 4879 4894 TEMPLATE_VBoxGuestR3Lib_CXXFLAGS += $(VBOX_VCC_WERR) 4880 4895 TEMPLATE_VBoxGuestR3Lib_LDFLAGS += $(VBOX_VCC_LD_WERR) 4881 else 4896 else ifeq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),) 4882 4897 TEMPLATE_VBoxGuestR3Lib_CFLAGS += $(VBOX_GCC_WERR) 4883 4898 TEMPLATE_VBoxGuestR3Lib_CXXFLAGS += $(VBOX_GCC_WERR) … … 4939 4954 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.amd64 = -m elf_x86_64 4940 4955 endif 4941 TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-merge-constants -std=c99 $(VBOX_GCC_fno-stack-protector) -ffreestanding 4942 TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-merge-constants $(VBOX_GCC_fno-stack-protector) -ffreestanding 4956 TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-merge-constants -std=c99 -ffreestanding 4957 TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-merge-constants -ffreestanding 4958 ifeq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),) 4959 TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS += $(VBOX_GCC_fno-stack-protector) 4960 TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS += $(VBOX_GCC_fno-stack-protector) 4961 endif 4943 4962 TEMPLATE_VBOXGUESTR3XF86MOD_SYSSUFF = .o 4944 4963 TEMPLATE_VBOXGUESTR3XF86MOD_LIBS = \ … … 4963 4982 TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 4964 4983 TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 4965 TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3DLL_CFLAGS) -std=c99 4984 if1of ($(KBUILD_TARGET), linux) 4985 TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3DLL_CFLAGS) -std=c99 -Wno-conversion -Wno-unused-parameter 4986 ifeq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),) 4987 TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS += $(VBOX_GCC_Wno-variadic-macros) 4988 endif 4989 endif 4966 4990 TEMPLATE_VBOXGUESTR3XORGMOD_DEFS = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR VBOX_GUESTR3XORGMOD RTMEM_NO_WRAP_TO_EF_APIS 4967 4991 ifeq ($(KBUILD_TARGET_ARCH),amd64)
Note:
See TracChangeset
for help on using the changeset viewer.