diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-04-13 01:39:42 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-04-13 01:39:42 -0300 |
commit | 1979a033a577a1d264dd45a435d5f52688b27b17 (patch) | |
tree | eef91594035d9a2fc5f9e4900274217c14ae45b2 /libre/virtualbox-libre/003-gcc-48.patch | |
parent | 94a189fe87f79027d4572db3f933f49b7fb2042e (diff) | |
download | abslibre-1979a033a577a1d264dd45a435d5f52688b27b17.tar.gz abslibre-1979a033a577a1d264dd45a435d5f52688b27b17.tar.bz2 abslibre-1979a033a577a1d264dd45a435d5f52688b27b17.zip |
virtualbox-libre-4.2.12-1: updating version
Diffstat (limited to 'libre/virtualbox-libre/003-gcc-48.patch')
-rw-r--r-- | libre/virtualbox-libre/003-gcc-48.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libre/virtualbox-libre/003-gcc-48.patch b/libre/virtualbox-libre/003-gcc-48.patch new file mode 100644 index 000000000..3039ea2c6 --- /dev/null +++ b/libre/virtualbox-libre/003-gcc-48.patch @@ -0,0 +1,39 @@ +Index: configure +=================================================================== +--- a/configure (revision 45449) ++++ a/configure (revision 45450) +@@ -416,7 +416,7 @@ + elif [ $cc_maj -lt 3 \ + -o \( $cc_maj -eq 3 -a $cc_min -lt 2 \) \ + -o \( $cc_maj -eq 4 -a $cc_min -lt 1 -a "$OS" != "darwin" \) \ +- -o \( $cc_maj -eq 4 -a $cc_min -gt 7 \) \ ++ -o \( $cc_maj -eq 4 -a $cc_min -gt 8 \) \ + -o $cc_maj -gt 4 ]; then + log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<8" + fail really +Index: Config.kmk +=================================================================== +--- a/Config.kmk (revision 45449) ++++ a/Config.kmk (revision 45450) +@@ -1503,7 +1503,7 @@ + # + # Compiler optimization flags. + # +-VBOX_GCC_WARN ?= -Wall $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) -Wno-unused -Wno-trigraphs $(VBOX_GCC_fdiagnostics-show-option) ++VBOX_GCC_WARN ?= -Wall $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) -Wno-unused -Wno-trigraphs $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_no-unused-parameter) + VBOX_GCC_WARN_PEDANTIC = -Wshadow $(VBOX_GCC_WARN) -Wno-long-long + ifdef VBOX_WITH_MASOCHISTIC_WARNINGS + VBOX_GCC_WARN_PEDANTIC += -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter +@@ -2285,6 +2285,12 @@ + $(QUIET)$(APPEND) '$@' ' endif' + $(QUIET)$(APPEND) '$@' 'endif' + endif ++# Prevent warnings about unused parameters as of gcc-4.8 as this warning is now very verbose ++ $(QUIET)$(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CXX),)' ++ $(QUIET)$(APPEND) '$@' ' ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CXX),40800),)' ++ $(QUIET)$(APPEND) '$@' ' VBOX_GCC_no-unused-parameter ?= -Wno-unused-parameter' ++ $(QUIET)$(APPEND) '$@' ' endif' ++ $(QUIET)$(APPEND) '$@' 'endif' + ifeq ($(KBUILD_TARGET),solaris) + $(QUIET)$(APPEND) '$@' 'VBOX_GCC_msave-args ?= $(call VBOX_GCC_CHECK_CXX,-msave-args,)' + # Detect the solaris assembler. It is used by the the 4.x gcc compilers, |