- Timestamp:
- Jul 3, 2020 9:34:16 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138951
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r85046 r85048 234 234 235 235 # Force the additions.sh script to get an exact additions build when we're doing the release. 236 if eq ($(int-mod $(VBOX_VERSION_BUILD),2),0)236 if $(VBOX_VERSION_BUILD) % 2 == 0 237 237 ifeq ($(VBOX_VERSION_PRERELEASE),) 238 238 VBOX_RELEASE_EXACT_MATCH=1 … … 2702 2702 endif 2703 2703 2704 ifeq ($(KBUILD_HOST),win) ## @todo can drop this now, we're not using cygwin. 2705 # This isn't important (yet) on windows, so cook the result until 2706 # cygwin is feeling better. 2707 VBOX_GCC_VERSION := $(int-add $(int-mul 10000, 3), $(int-mul 100, 3), 3) 2704 ifeq ($(KBUILD_HOST),win) 2705 # We're not using gcc on windows anymore, just cook the result. 2706 VBOX_GCC_VERSION := $(expr 10000 * 3 + 100 * 3 + 3) 2708 2707 else 2709 2708 # This is kind of bad, the returned string needs to be re-evaluated before use. … … 2712 2711 # gcc-5 of openSUSE42.1 only returns the major version on `gcc -dumpversion`! 2713 2712 VBOX_GCC_VERSION = $(shell ($(1) -dumpfullversion 2>/dev/null || $(1) -dumpversion) | \ 2714 $(SED_EXT) 's|\([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$( int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)),$$(firstword \3 0))|' )2713 $(SED_EXT) 's|\([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$(expr 10000 * \1 + 100 * $$(firstword \2 0) + $$(firstword \3 0))|' ) 2715 2714 ifeq ($(KBUILD_TARGET), darwin) 2716 2715 VBOX_CLANG_VERSION = $(shell $(1) --version | \ 2717 $(SED_EXT) -n 's|.*version \([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$( int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)),$$(firstword \3 0))|p' )2716 $(SED_EXT) -n 's|.*version \([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$(expr 10000 * \1) + 100 * $$(firstword \2 0) + $$(firstword \3 0))|p' ) 2718 2717 endif 2719 2718 endif … … 2863 2862 $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wextra ?= $(call VBOX_GCC_CHECK_CC,-Wextra,)' 2864 2863 $(QUIET)$(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CC),)' 2865 $(QUIET)$(APPEND) '$@' ' if neq ($$(int-ge $$(VBOX_GCC_VERSION_CC),40500),)'2864 $(QUIET)$(APPEND) '$@' ' if $$(VBOX_GCC_VERSION_CC) >= 40500' 2866 2865 $(QUIET)$(APPEND) '$@' ' VBOX_GCC_Wlogical-op ?= $(call VBOX_GCC_CHECK_CC,-Wlogical-op,)' 2867 2866 $(QUIET)$(APPEND) '$@' ' VBOX_GCC_Wno-logical-op ?= $$(subst -Wlogical-op,-Wno-logical-op,$$(VBOX_GCC_Wlogical-op)) … … 2903 2902 $(QUIET)$(APPEND) '$@' 'VBOX_LD_as_needed ?= $(call VBOX_GCC_CHECK_LD,--as-needed,)' 2904 2903 $(QUIET)$(APPEND) '$@' 'VBOX_LD_hash_style_sysv ?= $(call VBOX_GCC_CHECK_LD,--hash-style=sysv,)' 2905 # gcc version < 3.4 has a bug in handling __attribute__((regparm(3))).2906 # See http://osdir.com/ml/gcc.prs/2002-08/msg00223.html and probably http://gcc.gnu.org/bugzilla/show_bug.cgi?id=200042907 $(QUIET)$(APPEND) '$@' 'VBOX_GCC_BUGGY_REGPARM ?= $$(int-lt $$(VBOX_GCC_VERSION_CC),30400)'2908 2904 # Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number 2909 2905 # of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4. 2910 2906 $(QUIET)$(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CC),)' 2911 $(QUIET)$(APPEND) '$@' ' if neq ($$(int-ge $$(VBOX_GCC_VERSION_CC),40000),)'2907 $(QUIET)$(APPEND) '$@' ' if $$(VBOX_GCC_VERSION_CC) >= 40000' 2912 2908 $(QUIET)$(APPEND) '$@' ' VBOX_GCC_fvisibility-hidden ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT,)' 2913 2909 $(QUIET)$(APPEND) '$@' ' endif' … … 2917 2913 # of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4. 2918 2914 $(QUIET)$(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CXX),)' 2919 $(QUIET)$(APPEND) '$@' ' if neq ($$(int-ge $$(VBOX_GCC_VERSION_CXX),40000),)'2915 $(QUIET)$(APPEND) '$@' ' if $$(VBOX_GCC_VERSION_CXX) >= 40000' 2920 2916 $(QUIET)$(APPEND) '$@' ' VBOX_GCC_fvisibility-inlines-hidden ?= $(call VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,)' 2921 2917 $(QUIET)$(APPEND) '$@' ' endif' … … 2934 2930 # C++ Std settings 2935 2931 $(QUIET)$(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CXX),)' 2936 $(QUIET)$(APPEND) '$@' ' if neq ($$(int-ge $$(VBOX_GCC_VERSION_CXX),40800),)'2932 $(QUIET)$(APPEND) '$@' ' if $$(VBOX_GCC_VERSION_CXX) >= 40800' 2937 2933 $(QUIET)$(APPEND) '$@' ' VBOX_GCC_std ?= -std=c++11' 2938 $(QUIET)$(APPEND) '$@' ' else if neq ($$(int-ge $$(VBOX_GCC_VERSION_CXX),40600),)'2934 $(QUIET)$(APPEND) '$@' ' else if $$(VBOX_GCC_VERSION_CXX) >= 40600' 2939 2935 $(QUIET)$(APPEND) '$@' ' VBOX_GCC_std ?= -std=c++0x' 2940 2936 # darwin Xcode 5 allegedly knows what C++11 is 2941 2937 ifeq ($(KBUILD_HOST),darwin) 2942 $(QUIET)$(APPEND) '$@' ' else if neq ($$(int-ge $$(VBOX_CLANG_VERSION_CXX),50000),)'2938 $(QUIET)$(APPEND) '$@' ' else if $$(VBOX_CLANG_VERSION_CXX) >= 50000' 2943 2939 $(QUIET)$(APPEND) '$@' ' VBOX_GCC_std ?= -std=c++11' 2944 2940 endif -
trunk/Makefile.kmk
r84954 r85048 223 223 ifndef VBOX_ONLY_BUILD 224 224 ifneq ($(VBOX_GCC_VERSION_CXX),) 225 if eq ($(int-ge $(VBOX_GCC_VERSION_CXX),40400),)225 if $(VBOX_GCC_VERSION_CXX) < 40400 226 226 $(error gcc >= 4.4 required when compiling against Qt5!) 227 227 endif -
trunk/src/VBox/NetworkServices/NAT/Makefile.kmk
r84540 r85048 77 77 ifeq ($(KBUILD_TARGET),solaris) 78 78 ifneq ($(VBOX_GCC_VERSION_CXX),) 79 if neq ($(int-ge $(VBOX_GCC_VERSION_CXX),40600),)79 if $(VBOX_GCC_VERSION_CXX) >= 40600 80 80 # we compile C++ code with -std=c++0x / -std=c++11 81 81 VBoxNetNAT_CFLAGS.solaris += -std=c99
Note:
See TracChangeset
for help on using the changeset viewer.