VirtualBox

Changeset 657 in vbox


Ignore:
Timestamp:
Feb 6, 2007 1:26:08 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18293
Message:

Sanity checks and fixes for building 32-bit guest stuff correctly when targetting 64-bit systems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile

    r591 r657  
    3535 endif
    3636 ifdef VBOX_WITH_LINUX_ADDITIONS
    37   LIBRARIES += RuntimeLnx32GuestR0 RuntimeLnx32GuestR3
     37  LIBRARIES += RuntimeLnx32GuestR3
     38  ifeq ($(BUILD_PLATFORM_ARCH),x86) # (AMD64: can't build it and doesn't need it, so skip it.)
     39   LIBRARIES += RuntimeLnx32GuestR0
     40  endif
    3841 endif
    3942 LIBRARIES.l4= RuntimeR3L4
     
    121124
    122125RuntimeR3_SOURCES       = \
     126        misc/sanity-cpp.cpp \
     127        misc/sanity-c.c \
    123128        alloc.cpp \
    124129        alloc/heapsimple.cpp \
     
    385390#
    386391RuntimeW32GuestR3_TEMPLATE     = VBOXW32GUESTR3LIB
    387 RuntimeW32GuestR3_SDKS         = $(RuntimeR3_SDKS.win) $(RuntimeR3_SDKS.win.x86) $(RuntimeR3_SDKS)
    388 RuntimeW32GuestR3_DEFS         = $(RuntimeR3_DEFS)
    389 RuntimeW32GuestR3_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS).$(BUILD_TYPE)
     392RuntimeW32GuestR3_SDKS         = WINPSDK W2K3DDK
     393RuntimeW32GuestR3_DEFS         = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
     394ifdef IPRT_WITH_KLDR
     395 RuntimeW32GuestR3_DEFS       += LDR_WITH_KLDR KLDR_USE_CRT
     396 RuntimeW32GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
     397endif
    390398RuntimeW32GuestR3_SOURCES      = $(RuntimeR3_SOURCES.win) $(RuntimeR3_SOURCES)
    391399RuntimeW32GuestR3_INCS         = $(RuntimeR3_INCS.win)    $(RuntimeR3_INCS)
     
    396404#
    397405RuntimeLnx32GuestR3_TEMPLATE   = VBOXLNX32GUESTR3LIB
    398 RuntimeLnx32GuestR3_DEFS       = $(RuntimeR3_DEFS.linux)    $(RuntimeR3_DEFS)    IN_GUEST IN_GUEST_R3
    399 RuntimeLnx32GuestR3_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE))
     406RuntimeLnx32GuestR3_DEFS       = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
     407ifdef IPRT_WITH_KLDR
     408 RuntimeLnx32GuestR3_DEFS     += LDR_WITH_KLDR KLDR_USE_CRT
     409 RuntimeLnx32GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
     410endif
    400411RuntimeLnx32GuestR3_SOURCES    = $(RuntimeR3_SOURCES.linux) $(RuntimeR3_SOURCES)
    401412RuntimeLnx32GuestR3_INCS       = $(RuntimeR3_INCS.linux)    $(RuntimeR3_INCS)
     
    427438        iconv
    428439VBoxRT_LIBPATH.freebsd         = \
    429         /usr/local/lib 
     440        /usr/local/lib
    430441VBoxRT_LDFLAGS.darwin          = -framework IOKit
    431442ifdef VBOX_USE_VCC80
     
    451462RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
    452463RuntimeR3NoCRTGCC_SOURCES  = \
     464        misc/sanity-cpp.cpp \
     465        misc/sanity-c.c \
    453466        \
    454467        math/ceill.asm \
     
    499512RuntimeR0_DEFS          = IN_RT_R0 RT_WITH_VBOX
    500513RuntimeR0_SOURCES       = \
     514        misc/sanity-cpp.cpp \
     515        misc/sanity-c.c \
    501516        assert.cpp \
    502517        table/avlhcphys.cpp \
     
    559574
    560575RuntimeR0Drv_SOURCES    = \
     576        misc/sanity-cpp.cpp \
     577        misc/sanity-c.c \
    561578        assert.cpp \
    562579        log.cpp \
     
    631648RuntimeW32GuestR0_TEMPLATE      = VBOXW32GUESTR0LIB
    632649RuntimeW32GuestR0_SDKS          = W2K3DDKX86 WINPSDKINCS
    633 RuntimeW32GuestR0_DEFS          = $(RuntimeR0Drv_DEFS.win) $(RuntimeR0Drv_DEFS.win.x86) $(RuntimeR0Drv_DEFS)
    634 RuntimeW32GuestR0_INCS          = $(RuntimeR0Drv_INCS.win) $(RuntimeR0Drv_INCS.win.x86) $(RuntimeR0Drv_INCS)
     650RuntimeW32GuestR0_DEFS          = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS  IN_SUP_R0
    635651RuntimeW32GuestR0_SOURCES       = \
    636652        $(RuntimeR0Drv_SOURCES) \
     
    662678#
    663679RuntimeLnx32GuestR0_TEMPLATE      = VBOXLNX32GUESTR0
    664 RuntimeLnx32GuestR0_DEFS          = $(RuntimeR0Drv_DEFS.linux) $(RuntimeR0Drv_DEFS) IN_GUEST IN_GUEST_R0
     680RuntimeLnx32GuestR0_DEFS          = RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0 \
     681                                    MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\)
    665682RuntimeLnx32GuestR0_INCS          = $(RuntimeR0Drv_INCS.linux) $(RuntimeR0Drv_INCS)
    666683RuntimeLnx32GuestR0_SOURCES       = \
     
    675692RuntimeGC_DEFS          = IN_RT_GC RT_WITH_VBOX
    676693RuntimeGC_SOURCES       = \
     694        misc/sanity-cpp.cpp \
     695        misc/sanity-c.c \
    677696        table/avlogcphys.cpp \
    678697        table/avlrogcphys.cpp \
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