VirtualBox

Changeset 3517 in vbox


Ignore:
Timestamp:
Jul 9, 2007 4:48:55 PM (18 years ago)
Author:
vboxsync
Message:

fixed VBOX_PATH_GCC_INCS for 64-bit cross builds on 32-bit hosts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r3452 r3517  
    602602DEFS.darwin.x86 = VBOX_WITH_HYBIRD_32BIT_KERNEL
    603603DEFS.freebsd = __FREEBSD__
    604 DEFS.l4      = __L4__ __L4ENV__ L4API_l4v2 ARCH_x86 __NO_CTYPE _FILE_OFFSET_BITS=64
     604DEFS.l4      = __L4__ __L4ENV__ L4API_l4v2 ARCH_$(BUILD_TARGET_ARCH) __NO_CTYPE _FILE_OFFSET_BITS=64
    605605ifeq ($(L4_API),l4v2onv4)
    606606 DEFS.l4    += L4API_l4v2onv4 STATIC_L4_INLINE
     
    915915endif
    916916        @# Find the compiler includes for IPRT no-crt.
    917         $(APPEND) "$@" "VBOX_PATH_GCC_INCS             ?= $(abspath $(dir $(shell LC_ALL=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)))/include"
     917        @# Note that `$(dir $(gcc -print-libgcc-file-name))/include does not work for a 64-bit cross build on a 32-bit build host.
     918        $(APPEND) "$@" "VBOX_PATH_GCC_INCS             ?= $(shell LC_ALL=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-search-dirs|$(SED_EXT) -ne 's+^install: \(.*[^/][^/]*\)/+\1+p')/include"
    918919
    919920        @# 32-bit (GC) compiler switch detection.
     
    923924        $(APPEND) "$@" "VBOX_GCC32_Wno-variadic-macros ?= $(call VBOX_GCC32_CHECK_CXX,-Wno-variadic-macros,)"
    924925
    925 ifeq ($(BUILD_TARGET),l4)
    926         @# L4
    927         $(APPEND) "$@" "VBOX_PATH_L4_GCC3_INSTALL      ?= $(shell LANG=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-search-dirs|$(SED_EXT) -ne 's+^install: \(.*[^/][^/]*\)/\?+\1+p')"
    928 endif
    929 
    930926include $(PATH_OUT)/GCCConfig.kmk
    931927
    932 ifeq ($(BUILD_TARGET),l4)
    933  VBOX_L4_GCC3_INCS := $(VBOX_PATH_L4_GCC3_INSTALL)/include
    934  # L4_GPP3_INCS := \
    935  #         $(VBOX_PATH_L4_GCC3_INSTALL)/include/g++-v3/ \
    936  #         $(VBOX_PATH_L4_GCC3_INSTALL)/include/g++-v3/i386-pc-linux-gnu/
    937 endif
    938928
    939929#
     
    15011491# L4 currently can't handle exception handling.
    15021492TEMPLATE_VBOXR3EXE_CXXFLAGS.l4         = -fno-exceptions -nostdinc \
    1503         $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR) $(FILE_TOOL_GPP3_INCDIR)) \
     1493        $(addprefix -I,$(VBOX_PATH_GCC_INCS) $(L4_INCDIR) $(FILE_TOOL_GPP3_INCDIR)) \
    15041494        $(DEBUG_L4)
    15051495TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile   = -finstrument-functions
     
    15091499TEMPLATE_VBOXR3EXE_CFLAGS.darwin       = -fno-common
    15101500TEMPLATE_VBOXR3EXE_CFLAGS.l4           = -nostdinc \
    1511         $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR)) $(DEBUG_L4)
     1501        $(addprefix -I,$(VBOX_PATH_GCC_INCS) $(L4_INCDIR)) $(DEBUG_L4)
    15121502TEMPLATE_VBOXR3EXE_DEFS.l4             = L4_THREAD_SAFE
    15131503TEMPLATE_VBOXR3EXE_LDFLAGS.l4          = \
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