VirtualBox

Changeset 2497 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
May 4, 2007 3:10:51 PM (18 years ago)
Author:
vboxsync
Message:

disable -fvisibility stuff for gcc < 4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r2482 r2497  
    830830   else echo "$(2)"; fi; )
    831831
     832VBOX_GCC_VERSION = $(shell \
     833   echo "$$((`$(1) -dumpversion | sed 's|\([0-9]\)\.\([0-9]\)\.\([0-9]\)|10000 * \1 + 100 * \2 + \3|'`))")
     834
    832835# No $(QUIET) here as it's interesting to see what goes into the file.
    833836$(PATH_OUT)/GCCConfig.kmk: $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG)
     
    837840
    838841        @# HC compiler switch detction.
     842        $(APPEND) "$@" "VBOX_GCC_VERSION_CC            ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CC))"
     843        $(APPEND) "$@" "VBOX_GCC_VERSION_CXX           ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CXX))"
     844        $(APPEND) "$@" "VBOX_GCC32_VERSION_CC          ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC32_TOOL)_CC))"
     845        $(APPEND) "$@" "VBOX_GCC32_VERSION_CXX         ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC32_TOOL)_CXX))"
    839846        $(APPEND) "$@" "VBOX_GCC_LIBGCC                ?= $(shell $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)"
    840847        $(APPEND) "$@" "VBOX_GCC_Wno-pointer-sign      ?= $(call VBOX_GCC_CHECK_CC,-Wno-pointer-sign,)"
     
    844851        $(APPEND) "$@" "VBOX_GCC_fno-stack-protector   ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)"
    845852        @# Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number
    846         @# of relocation entries and PLT indirections in shared libraries.
    847         $(APPEND) "$@" "VBOX_GCC_fvisibility-hidden    ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,)"
     853        @# of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4.
     854        $(APPEND) "$@" "VBOX_GCC_fvisibility-hidden    ?= $(if $(shell \
     855          [ $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CC)) -ge 40000 ] && echo 'ok'),$(call \
     856            VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,),)"
    848857        @# Set default attribute for inline functions to ``hidden'' to reduce the number
    849         @# of relocation entries and PLT indirections in shared libraries.
    850         $(APPEND) "$@" "VBOX_GCC_fvisibility-inlines-hidden ?= $(call VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,)"
     858        @# of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4.
     859        $(APPEND) "$@" "VBOX_GCC_fvisibility-inlines-hidden ?= $(if $(shell \
     860          [ $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CC)) -ge 40000 ] && echo 'ok'),$(call \
     861            VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,),)"
    851862        @# Find the compiler includes for IPRT no-crt.
    852863        $(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