VirtualBox

Changeset 2523 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
May 7, 2007 12:03:41 PM (18 years ago)
Author:
vboxsync
Message:

workaround for the windows ash issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r2510 r2523  
    830830   else echo "$(2)"; fi; )
    831831
     832# This is kind of bad, the returned string needs to be re-evaluated before use.
     833# The reason for this hack is that the windows kmk_ash cannot deal with $((1+1)).
    832834VBOX_GCC_VERSION = $(shell \
    833    echo "$$((`$(1) -dumpversion | sed 's|\([0-9]\)\.\([0-9]\)\.\([0-9]\)|10000 * \1 + 100 * \2 + \3|'`))")
     835  $(1) -dumpversion | sed 's|\([0-9]\)\.\([0-9]\)\.\([0-9]\)|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, \2), \3)|' )
    834836
    835837# No $(QUIET) here as it's interesting to see what goes into the file.
     
    850852        @# Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number
    851853        @# of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4.
    852         $(APPEND) "$@" "VBOX_GCC_fvisibility-hidden    ?= $(if $(shell \
    853           [ $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CC)) -ge 40000 ] && echo 'ok'),$(call \
    854             VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,),)"
     854        $(APPEND) "$@" "ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CC),40000),)"
     855        $(APPEND) "$@" " VBOX_GCC_fvisibility-hidden    ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,)"
     856        $(APPEND) "$@" "endif"
    855857        @# Set default attribute for inline functions to ``hidden'' to reduce the number
    856858        @# of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4.
    857         $(APPEND) "$@" "VBOX_GCC_fvisibility-inlines-hidden ?= $(if $(shell \
    858           [ $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CC)) -ge 40000 ] && echo 'ok'),$(call \
    859             VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,),)"
     859        $(APPEND) "$@" "ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CXX),40000),)"
     860        $(APPEND) "$@" " VBOX_GCC_fvisibility-inlines-hidden ?= $(call VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,)"
     861        $(APPEND) "$@" "endif"
    860862        @# Find the compiler includes for IPRT no-crt.
    861863        $(APPEND) "$@" "VBOX_PATH_GCC_INCS             ?= $(abspath $(dir $(shell LC_ALL=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)))/include"
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