VirtualBox

Changeset 85479 in vbox


Ignore:
Timestamp:
Jul 27, 2020 7:34:29 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139533
Message:

/Config.kmk: temp env.vars. debugging on win-*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r85447 r85479  
    30383038        $(QUIET)$(CAT) $@
    30393039        $(QUIET)$(ECHO) '=========== END OF $@ ========='
     3040# temp hack for win-* debugging.
     3041        /usr/bin/env || true
    30403042
    30413043include $(PATH_OUT)/DynamicConfig.kmk
     
    46304632        $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \
    46314633        -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
     4634TEMPLATE_VBoxR0_CFLAGS.amd64        = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables -ffreestanding
     4635TEMPLATE_VBoxR0_CXXFLAGS.amd64      = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables
    46364636TEMPLATE_VBoxR0_CXXFLAGS.freebsd    = -ffreestanding
    46374637 if $(VBOX_GCC_VERSION_CC) < 30400
    46384638  TEMPLATE_VBoxR0_DEFS             += RT_WITHOUT_PRAGMA_ONCE
    46394639 endif
    4640 ifeq ($(KBUILD_TARGET),solaris)
     4640 ifeq ($(KBUILD_TARGET),solaris)
    46414641 TEMPLATE_VBoxR0_LDFLAGS            = -r
    46424642 TEMPLATE_VBoxR0_LDFLAGS.solaris    = -u _init -u _info
     
    46494649 # Solaris driver signing.
    46504650 TEMPLATE_VBoxR0_POST_CMDS          = $(VBOX_SIGN_DRIVER_CMDS)
    4651 else
     4651 else
    46524652 TEMPLATE_VBoxR0_LDFLAGS            = -nostdlib -Bsymbolic -g
    46534653 ## @todo WTF doesn't the globals work? Debug info is supposed to be split everywhere. GRR
    46544654 TEMPLATE_VBoxR0_LD_DEBUG           = split
    4655 endif
    4656 ifn1of ($(KBUILD_TARGET),solaris freebsd)
     4655 endif
     4656 if1of ($(KBUILD_TARGET), linux)
     4657VBOX_WITH_VBOXR0_AS_DLL = 1
     4658TEMPLATE_VBoxR0_DLLSUFF             = .r0
     4659TEMPLATE_VBoxR0_CFLAGS             += -fPIC
     4660TEMPLATE_VBoxR0_CXXFLAGS           += -fPIC
     4661TEMPLATE_VBoxR0_LDFLAGS            +=
     4662TEMPLATE_VBoxR0_DTRACE_HDR_FLAGS   += --pic
     4663TEMPLATE_VBoxR0_DTRACE_OBJ_FLAGS   += --pic
     4664 else
     4665TEMPLATE_VBoxR0_CFLAGS.amd64       += -mcmodel=kernel
     4666TEMPLATE_VBoxR0_CXXFLAGS.amd64     += -mcmodel=kernel
     4667 endif
     4668 ifn1of ($(KBUILD_TARGET),solaris freebsd)
    46574669 TEMPLATE_VBoxR0_LIBS               = \
    46584670        $(VBOX_GCC_LIBGCC) # intrinsics
    4659 endif
    4660 if1of ($(KBUILD_TARGET),linux)
    4661  TEMPLATE_VBoxR0_POST_CMDS          = \
     4671 endif
     4672 if1of ($(KBUILD_TARGET),linux)
     4673 TEMPLATE_VBoxR0_POST_CMDS         += $(NLTAB)\
    46624674        $(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 endif
    4664 endif
     4675 endif
     4676endif # elf
    46654677
    46664678ifeq ($(VBOX_LDR_FMT),macho)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette