VirtualBox

Changeset 98181 in vbox for trunk


Ignore:
Timestamp:
Jan 21, 2023 10:34:07 PM (21 months ago)
Author:
vboxsync
Message:

/Config.kmk,IPRT/Makefile.kmk: Removed unused RuntimeR3NoCRTGCC library and the associated VBoxNoCrtGccLib and VBOXNOCRTGAS templates. This was related to the old recompiler. bugref:10348

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r98180 r98181  
    69586958
    69596959
    6960 
    69616960#
    69626961# Same as VBoxR3DllNonPedantic, only it optimizes debug builds.
     
    70277026 endif
    70287027endif
    7029 
    7030 
    7031 #
    7032 # Template for building libraries, shared libraries / modules
    7033 # which only depends on IPRT for crt.
    7034 #
    7035 TEMPLATE_VBoxNoCrtGccLib = VBox no-crt GCC libraries and modules, yasm/nasm.
    7036 TEMPLATE_VBoxNoCrtGccLib_DEFS              = IN_RING3 IPRT_NO_CRT $(ARCH_BITS_DEFS)
    7037 TEMPLATE_VBoxNoCrtGccLib_ASDEFS            = ASM_CALL64_GCC
    7038 TEMPLATE_VBoxNoCrtGccLib_CFLAGS            = -nostdinc -fno-strict-aliasing -fno-math-errno $(VBOX_GCC_WARN) -Werror-implicit-function-declaration
    7039 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.x86        = -m32
    7040 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.amd64      = -m64 -mcmodel=medium -fno-common
    7041 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.sparc32    = -m32
    7042 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.sparc64    = -m64
    7043 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.release    = -O2 -fno-strict-aliasing
    7044 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.profile    = $(TEMPLATE_VBoxNoCrtGccLib_CFLAGS.release)
    7045 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.kprofile   = $(TEMPLATE_VBoxNoCrtGccLib_CFLAGS.release)
    7046 TEMPLATE_VBoxNoCrtGccLib_CFLAGS.darwin     = -static
    7047 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS          = $(filter-out -Werror-implicit-function-declaration,$(TEMPLATE_VBoxNoCrtGccLib_CFLAGS))
    7048 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxNoCrtGccLib_CFLAGS.$(KBUILD_TARGET))
    7049 TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_VBoxNoCrtGccLib_CFLAGS.$(KBUILD_TARGET_ARCH))
    7050 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS          = $(TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS)
    7051 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET))
    7052 TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS.$(KBUILD_TARGET_ARCH) =  $(TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS.$(KBUILD_TARGET_ARCH))
    7053 TEMPLATE_VBoxNoCrtGccLib_INCS              = $(PATH_ROOT)/include/iprt/nocrt
    7054 
    7055 ifeq (disabled-by-mingw-w64 $(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
    7056  # cross compile to 64-bit ELF (linux).
    7057  TEMPLATE_VBoxNoCrtGccLib_TOOL             = XGCCAMD64LINUX
    7058  TEMPLATE_VBoxNoCrtGccLib_ASTOOL           = YASM
    7059  TEMPLATE_VBoxNoCrtGccLib_ASFLAGS          = -f elf64 -DASM_FORMAT_ELF -D__YASM__ -g dwarf2 -w+orphan-labels $(VBOX_YASM_Wno-segreg-in-64bit)
    7060  TEMPLATE_VBoxNoCrtGccLib_LIBS             = $(KBUILD_DEVTOOLS)/win.x86/x86_64-unknown-linux-gnu/20060701-r2/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/libgcc.a
    7061  TEMPLATE_VBoxNoCrtGccLib_LDFLAGS          = -nostdlib
    7062 
    7063 else if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64)
    7064  # Use the default GCC (MinGW) with the Microsoft linker.
    7065  # (Drop all '-g' options as we're unable to strip the debug info.)
    7066  TEMPLATE_VBoxNoCrtGccLib_TOOL             = $(VBOX_GCC_TOOL)
    7067  if $(VBOX_GCC_VERSION_CC) < 30400
    7068   TEMPLATE_VBoxNoCrtGccLib_DEFS           += RT_WITHOUT_PRAGMA_ONCE
    7069  endif
    7070  TEMPLATE_VBoxNoCrtGccLib_ASTOOL          := $(VBOX_ASTOOL)
    7071  TEMPLATE_VBoxNoCrtGccLib_ASFLAGS          = $(VBOX_ASFLAGS)
    7072  TEMPLATE_VBoxNoCrtGccLib_LDTOOL           = $(VBOX_VCC_TOOL)
    7073  TEMPLATE_VBoxNoCrtGccLib_LDFLAGS          = -Incremental:NO -MapInfo:Exports -NoD -Ignore:4197
    7074  TEMPLATE_VBoxNoCrtGccLib_LIBS             = $(VBOX_GCC_LIBGCC)
    7075  TEMPLATE_VBoxNoCrtGccLib_CFLAGS          := $(filter-out -g,$(TEMPLATE_VBoxNoCrtGccLib_CFLAGS)) -s
    7076  TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS        := $(filter-out -g,$(TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS)) -s
    7077  TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS        := $(filter-out -g,$(TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS)) -s
    7078 
    7079 else
    7080  # Use the default GCC.
    7081  # The use of --exclude-libs ALL is to avoid confusing the linux ld.so.
    7082  TEMPLATE_VBoxNoCrtGccLib_TOOL             = $(VBOX_GCC_TOOL)
    7083  if $(VBOX_GCC_VERSION_CC) < 30400
    7084   TEMPLATE_VBoxNoCrtGccLib_DEFS           += RT_WITHOUT_PRAGMA_ONCE
    7085  endif
    7086  TEMPLATE_VBoxNoCrtGccLib_ASTOOL          := $(VBOX_ASTOOL)
    7087  TEMPLATE_VBoxNoCrtGccLib_ASFLAGS          = $(VBOX_ASFLAGS)
    7088  TEMPLATE_VBoxNoCrtGccLib_CFLAGS          += $(VBOX_GCC_fno-stack-protector)
    7089  TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS        += $(VBOX_GCC_fno-stack-protector)
    7090  TEMPLATE_VBoxNoCrtGccLib_PCHFLAGS        += $(VBOX_GCC_fno-stack-protector)
    7091  ifeq ($(KBUILD_TARGET_ARCH),amd64)
    7092   # in 64-bit mode we'll build a sys-module (VBoxREM2).
    7093   if1of ($(KBUILD_TARGET), darwin solaris)
    7094    TEMPLATE_VBoxNoCrtGccLib_LDFLAGS.solaris= -64 -r
    7095   else
    7096    TEMPLATE_VBoxNoCrtGccLib_LDFLAGS        = -nostdlib
    7097   endif
    7098  else # x86:
    7099   TEMPLATE_VBoxNoCrtGccLib_LDFLAGS         = -nostdlib
    7100   ifn1of ($(KBUILD_TARGET), os2 darwin solaris)
    7101    TEMPLATE_VBoxNoCrtGccLib_LDFLAGS       += $(VBOX_GCC_NO_UNDEFINED)
    7102   endif
    7103  endif # x86
    7104  TEMPLATE_VBoxNoCrtGccLib_LDFLAGS.darwin   = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -Wl,-headerpad_max_install_names
    7105  TEMPLATE_VBoxNoCrtGccLib_LIBS             = # FIXME - has unwind mess.
    7106 endif
    7107 
    7108 
    7109 #
    7110 # Same as VBoxNoCrtGccLib only it uses GAS as the assembler instead of yasm/nasm.
    7111 #
    7112 TEMPLATE_VBOXNOCRTGAS = VBox no-crt GCC libraries and modules, gas.
    7113 TEMPLATE_VBOXNOCRTGAS_EXTENDS = VBoxNoCrtGccLib
    7114 TEMPLATE_VBOXNOCRTGAS_ASTOOL = $(TEMPLATE_VBoxNoCrtGccLib_TOOL)
    7115 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    7116  TEMPLATE_VBOXNOCRTGAS_ASFLAGS = -s
    7117 else
    7118  TEMPLATE_VBOXNOCRTGAS_ASFLAGS = -g
    7119 endif
    7120 TEMPLATE_VBOXNOCRTGAS_ASFLAGS.x86 = -m32
    7121 TEMPLATE_VBOXNOCRTGAS_ASFLAGS.amd64 = -m64
    71227028
    71237029
  • trunk/src/VBox/Runtime/Makefile.kmk

    r98169 r98181  
    110110
    111111 BLDPROGS += uniread
    112  LIBRARIES += RuntimeR3 RuntimeBldProg RuntimeEFCPP RuntimeR3NoCRTGCC
     112 LIBRARIES += RuntimeR3 RuntimeBldProg RuntimeEFCPP
    113113 ifdef VBOX_WITH_R0_MODULES
    114114  LIBRARIES += RuntimeR0
     
    31423142
    31433143#
    3144 # RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
    3145 # This is used together with VBoxRT.
    3146 #
    3147 RuntimeR3NoCRTGCC_TEMPLATE = VBoxNoCrtGccLib
    3148 RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
    3149 RuntimeR3NoCRTGCC_DEFS    = RT_WITH_NOCRT_ALIASES
    3150 ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
    3151  RuntimeR3NoCRTGCC_DEFS  += RT_NO_GIP
    3152 endif
    3153 RuntimeR3NoCRTGCC_INCS     = include
    3154 RuntimeR3NoCRTGCC_SOURCES := \
    3155         common/misc/sanity-cpp.cpp \
    3156         common/misc/sanity-c.c \
    3157         \
    3158         $(RuntimeNoCrt_SOURCES)
    3159 
    3160 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
    3161 RuntimeR3NoCRTGCC_SOURCES += \
    3162         common/math/ceill.asm \
    3163         common/math/cosl.asm \
    3164         common/math/fabs.asm \
    3165         common/math/fabsf.asm \
    3166         common/math/fabsl.asm \
    3167         common/math/floor.asm \
    3168         common/math/floorf.asm \
    3169         common/math/floorl.asm \
    3170         common/math/ldexpl.asm \
    3171         common/math/llrint.asm \
    3172         common/math/llrintf.asm \
    3173         common/math/llrintl.asm \
    3174         common/math/logl.asm \
    3175         common/math/lrint.asm \
    3176         common/math/lrintf.asm \
    3177         common/math/lrintl.asm \
    3178         common/math/remainder.asm \
    3179         common/math/remainderf.asm \
    3180         common/math/remainderl.asm \
    3181         common/math/sinl.asm \
    3182         common/math/tanl.asm \
    3183         common/math/trunc.asm \
    3184         common/math/truncf.asm \
    3185         common/math/truncl.asm
    3186 endif
    3187 
    3188 RuntimeR3NoCRTGCC_SOURCES.x86 = \
    3189         common/math/gcc/adddi3.c \
    3190         common/math/gcc/anddi3.c \
    3191         common/math/gcc/ashldi3.c \
    3192         common/math/gcc/ashrdi3.c \
    3193         common/math/gcc/cmpdi2.c \
    3194         common/math/gcc/divdi3.c \
    3195         common/math/gcc/divmoddi4.c \
    3196         common/math/gcc/iordi3.c \
    3197         common/math/gcc/lshldi3.c \
    3198         common/math/gcc/lshrdi3.c \
    3199         common/math/gcc/moddi3.c \
    3200         common/math/gcc/muldi3.c \
    3201         common/math/gcc/negdi2.c \
    3202         common/math/gcc/notdi2.c \
    3203         common/math/gcc/qdivrem.c \
    3204         common/math/gcc/subdi3.c \
    3205         common/math/gcc/ucmpdi2.c \
    3206         common/math/gcc/udivdi3.c \
    3207         common/math/gcc/udivmoddi4.c \
    3208         common/math/gcc/umoddi3.c \
    3209         common/math/gcc/xordi3.c
    3210 
    3211 #
    32123144# RuntimeR3NoCRT - For windows applications w/o any runtime library.
    32133145# Experimental.
Note: See TracChangeset for help on using the changeset viewer.

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