VirtualBox

Changeset 1563 in kBuild


Ignore:
Timestamp:
Apr 23, 2008 2:37:23 AM (17 years ago)
Author:
bird
Message:

Force the darwin build to be 10.4 compatible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r1543 r1563  
    145145
    146146ifeq ($(KBUILD_TARGET),darwin)
    147 TEMPLATE_BIN_TOOL               = GCC4MACHO
    148 TEMPLATE_BIN_CFLAGS             = -g
    149 TEMPLATE_BIN_CFLAGS.profile     = -O3 -pg
    150 TEMPLATE_BIN_CFLAGS.release     = -O3
    151 TEMPLATE_BIN_LDFLAGS            = -g
    152 TEMPLATE_BIN_LDFLAGS.profile    = -pg
    153  ifdef NIX_INSTALL_DIR
    154 TEMPLATE_BIN_INST               = $(NIX_INSTALL_DIR_BIN)/
    155  else
    156 TEMPLATE_BIN_INST               = kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
     147 ifndef KBUILD_MACOSX_VERSION
     148  export KBUILD_MACOSX_VERSION := $(firstword $(subst ., ,$(shell uname -r)))
     149 endif
     150 KBUILD_MACOSX_SDK             ?= /Developer/SDKs/MacOSX10.4u.sdk
     151 TEMPLATE_BIN_TOOL              = GCC4MACHO
     152 TEMPLATE_BIN_CFLAGS            = -g -mmacosx-version-min=10.4 -isysroot $(KBUILD_MACOSX_SDK)
     153 TEMPLATE_BIN_CFLAGS.profile    = -O3 -pg
     154 TEMPLATE_BIN_CFLAGS.release    = -O3
     155 TEMPLATE_BIN_LDFLAGS           = -g -mmacosx-version-min=10.4 -Wl,-syslibroot,$(KBUILD_MACOSX_SDK)
     156 ifneq ($(int-ge $(KBUILD_MACOSX_VERSION),9),) # >= 10.5
     157  TEMPLATE_BIN_LDFLAGS          = -classic_ld
     158 endif
     159 TEMPLATE_BIN_LDFLAGS.profile   = -pg
     160 ifdef NIX_INSTALL_DIR
     161  TEMPLATE_BIN_INST             = $(NIX_INSTALL_DIR_BIN)/
     162 else
     163  TEMPLATE_BIN_INST             = kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
    157164 endif
    158165endif
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