Changeset 85479 in vbox
- Timestamp:
- Jul 27, 2020 7:34:29 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139533
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r85447 r85479 3038 3038 $(QUIET)$(CAT) $@ 3039 3039 $(QUIET)$(ECHO) '=========== END OF $@ =========' 3040 # temp hack for win-* debugging. 3041 /usr/bin/env || true 3040 3042 3041 3043 include $(PATH_OUT)/DynamicConfig.kmk … … 4630 4632 $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \ 4631 4633 -fno-rtti $(VBOX_GCC_std) $(VBOX_GCC_IPRT_FMT_CHECK) 4632 TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \ 4633 -fasynchronous-unwind-tables -ffreestanding 4634 TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \ 4635 -fasynchronous-unwind-tables 4634 TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables -ffreestanding 4635 TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables 4636 4636 TEMPLATE_VBoxR0_CXXFLAGS.freebsd = -ffreestanding 4637 4637 if $(VBOX_GCC_VERSION_CC) < 30400 4638 4638 TEMPLATE_VBoxR0_DEFS += RT_WITHOUT_PRAGMA_ONCE 4639 4639 endif 4640 ifeq ($(KBUILD_TARGET),solaris)4640 ifeq ($(KBUILD_TARGET),solaris) 4641 4641 TEMPLATE_VBoxR0_LDFLAGS = -r 4642 4642 TEMPLATE_VBoxR0_LDFLAGS.solaris = -u _init -u _info … … 4649 4649 # Solaris driver signing. 4650 4650 TEMPLATE_VBoxR0_POST_CMDS = $(VBOX_SIGN_DRIVER_CMDS) 4651 else4651 else 4652 4652 TEMPLATE_VBoxR0_LDFLAGS = -nostdlib -Bsymbolic -g 4653 4653 ## @todo WTF doesn't the globals work? Debug info is supposed to be split everywhere. GRR 4654 4654 TEMPLATE_VBoxR0_LD_DEBUG = split 4655 endif 4656 ifn1of ($(KBUILD_TARGET),solaris freebsd) 4655 endif 4656 if1of ($(KBUILD_TARGET), linux) 4657 VBOX_WITH_VBOXR0_AS_DLL = 1 4658 TEMPLATE_VBoxR0_DLLSUFF = .r0 4659 TEMPLATE_VBoxR0_CFLAGS += -fPIC 4660 TEMPLATE_VBoxR0_CXXFLAGS += -fPIC 4661 TEMPLATE_VBoxR0_LDFLAGS += 4662 TEMPLATE_VBoxR0_DTRACE_HDR_FLAGS += --pic 4663 TEMPLATE_VBoxR0_DTRACE_OBJ_FLAGS += --pic 4664 else 4665 TEMPLATE_VBoxR0_CFLAGS.amd64 += -mcmodel=kernel 4666 TEMPLATE_VBoxR0_CXXFLAGS.amd64 += -mcmodel=kernel 4667 endif 4668 ifn1of ($(KBUILD_TARGET),solaris freebsd) 4657 4669 TEMPLATE_VBoxR0_LIBS = \ 4658 4670 $(VBOX_GCC_LIBGCC) # intrinsics 4659 endif4660 if1of ($(KBUILD_TARGET),linux)4661 TEMPLATE_VBoxR0_POST_CMDS =\4671 endif 4672 if1of ($(KBUILD_TARGET),linux) 4673 TEMPLATE_VBoxR0_POST_CMDS += $(NLTAB)\ 4662 4674 $(if $(eq $(tool_do),LINK_SYSMOD),if readelf -S $(out)|grep -q "[cd]tors"; then echo "Found ctors/dtors in $(out)!"; exit 1; fi) 4663 endif4664 endif 4675 endif 4676 endif # elf 4665 4677 4666 4678 ifeq ($(VBOX_LDR_FMT),macho)
Note:
See TracChangeset
for help on using the changeset viewer.