Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 618994 | Differences between
and this patch

Collapse All | Expand All

(-)VirtualBox-5.1.22/Config.kmk.orig (-3 / +20 lines)
Lines 4083-4089 Link Here
4083
endif
4083
endif
4084
4084
4085
ifeq ($(KBUILD_TARGET),linux)
4085
ifeq ($(KBUILD_TARGET),linux)
4086
TEMPLATE_VBOXR0DRV_TOOL                = $(NO_SUCH_VARIABLE)
4086
 TEMPLATE_VBOXR0DRV_TOOL                = $(VBOX_GCC_TOOL)
4087
 TEMPLATE_VBOXR0DRV_INCS                = $(VBOX_LINUX_INCS)
4088
 TEMPLATE_VBOXR0DRV_LIBS                = $(VBOX_GCC_LIBGCC)
4089
 TEMPLATE_VBOXR0DRV_CFLAGS              = -fno-pie -nostdinc -iwithprefix include $(VBOX_LINUX_INCS) \
4090
 	$(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare $(VBOX_GCC_fdiagnostics-show-option) \
4091
	$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \
4092
 	-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
4093
 TEMPLATE_VBOXR0DRV_CFLAGS.x86          = -mpreferred-stack-boundary=2 -msoft-float
4094
 TEMPLATE_VBOXR0DRV_CFLAGS.amd64        = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-red-zone -mcmodel=kernel \
4095
	$(VBOX_GCC_msave-args) -fno-reorder-blocks -fno-asynchronous-unwind-tables -funit-at-a-time $(VBOX_GCC_msave-args)
4096
 TEMPLATE_VBOXR0DRV_CXXFLAGS            = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) -Wno-long-long $(VBOX_GCC_fdiagnostics-show-option) \
4097
	-Wno-c++11-extensions -Wno-c99-extensions -Wno-extra-semi -Wno-zero-length-array \
4098
	-Wno-gnu-zero-variadic-macro-arguments -Wno-four-char-constants \
4099
	-fno-common -nostdinc -fno-builtin $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \
4100
	-fno-exceptions -msoft-float -fapple-kext -fno-rtti -mkernel \
4101
	-fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module \
4102
	-Werror=non-modular-include-in-framework-module \
4103
	$(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fasm-blocks -fno-strict-aliasing -stdlib=libc++
4087
endif
4104
endif
4088
4105
4089
ifeq ($(KBUILD_TARGET),os2)
4106
ifeq ($(KBUILD_TARGET),os2)
Lines 6452-6459 Link Here
6452
TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS  = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-pie -fno-merge-constants -std=c99 -ffreestanding
6469
TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS  = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-pie -fno-merge-constants -std=c99 -ffreestanding
6453
TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-pie -fno-merge-constants -ffreestanding
6470
TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-pie -fno-merge-constants -ffreestanding
6454
ifndef VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE
6471
ifndef VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE
6455
 TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS   += $(VBOX_GCC_fno-stack-protector)
6472
 TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS   += $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie)
6456
 TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS += $(VBOX_GCC_fno-stack-protector)
6473
 TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS += $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie)
6457
endif
6474
endif
6458
TEMPLATE_VBOXGUESTR3XF86MOD_SYSSUFF = .o
6475
TEMPLATE_VBOXGUESTR3XF86MOD_SYSSUFF = .o
6459
TEMPLATE_VBOXGUESTR3XF86MOD_LIBS  = \
6476
TEMPLATE_VBOXGUESTR3XF86MOD_LIBS  = \

Return to bug 618994