Changeset 128 for trunk/kBuild


Ignore:
Timestamp:
Jun 27, 2004, 11:22:30 PM (21 years ago)
Author:
bird
Message:

Hack for cross compiling on linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/MINGW32.kmk

    r126 r128  
    2929# find latest installed version
    3030ifndef PATH_TOOL_MINGW32                                                                 
    31 PATH_TOOL_MINGW32            := $(sort $(wildcard $(PATH_DEV)/$(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM)/36mingw32/v*.*))
     31PATH_TOOL_MINGW32            := $(sort $(wildcard $(PATH_DEV)/$(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM)/mingw32/v*.*))
    3232ifeq ($(PATH_TOOL_MINGW32),)
    3333PATH_TOOL_MINGW32            := $(sort $(wildcard $(PATH_DEV)/x86.win32/mingw32/v*.*))
     
    4444endif
    4545_TOOL_MINGW32_SUFF_EXE          := $(HOSTSUFF_EXE)
    46 ifneq ($(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM),x86.win32)
     46ifneq ($(BUILD_PLATFORM),win32)
     47# we're cross compiling either using wine/odin or a cross compiler.
    4748ifneq ($(PATH_TOOL_MINGW32),$(subst x86.win32,,$(PATH_TOOL_MINGW32)))
    4849_TOOL_MINGW32_PREFIX            := $(EXEC_X86_WIN32) $(_TOOL_MINGW32_PREFIX)
    4950_TOOL_MINGW32_SUFF_EXE          := .exe
     51else
     52_TOOL_MINGW32_PREFIX            := $(_TOOL_MINGW32_PREFIX)i386-mingw32msvc-
     53_TOOL_MINGW32_SUFF_EXE          :=
     54_TOOL_MINGW32_XCOMPILE          := 1
    5055endif
    5156endif
     
    7782TOOL_MINGW32_ARLIBSUFF          := .a
    7883
     84# The linux cross compiler ebuild haven't got g++, this is a hack for that.
     85ifndef _TOOL_MINGW32_XCOMPILE
    7986TOOL_MINGW32_LD                 := $(_TOOL_MINGW32_PREFIX)g++$(_TOOL_MINGW32_SUFF_EXE)
     87else
     88TOOL_MINGW32_LD                 := $(_TOOL_MINGW32_PREFIX)gcc$(_TOOL_MINGW32_SUFF_EXE)
     89endif
    8090TOOL_MINGW32_LDFLAGS            :=
    8191TOOL_MINGW32_LDFLAGS.debug      := -g
Note: See TracChangeset for help on using the changeset viewer.