Changeset 2497 in vbox for trunk/Config.kmk
- Timestamp:
- May 4, 2007 3:10:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r2482 r2497 830 830 else echo "$(2)"; fi; ) 831 831 832 VBOX_GCC_VERSION = $(shell \ 833 echo "$$((`$(1) -dumpversion | sed 's|\([0-9]\)\.\([0-9]\)\.\([0-9]\)|10000 * \1 + 100 * \2 + \3|'`))") 834 832 835 # No $(QUIET) here as it's interesting to see what goes into the file. 833 836 $(PATH_OUT)/GCCConfig.kmk: $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG) … … 837 840 838 841 @# 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))" 839 846 $(APPEND) "$@" "VBOX_GCC_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)" 840 847 $(APPEND) "$@" "VBOX_GCC_Wno-pointer-sign ?= $(call VBOX_GCC_CHECK_CC,-Wno-pointer-sign,)" … … 844 851 $(APPEND) "$@" "VBOX_GCC_fno-stack-protector ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)" 845 852 @# 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,),)" 848 857 @# 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,),)" 851 862 @# Find the compiler includes for IPRT no-crt. 852 863 $(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.