Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libsmbios/files: libsmbios-2.2.26-gcc46.patch
Date: Sun, 29 May 2011 10:10:32
Message-Id: 20110529101023.8351120054@flycatcher.gentoo.org
1 polynomial-c 11/05/29 10:10:23
2
3 Added: libsmbios-2.2.26-gcc46.patch
4 Log:
5 Fixed building with >=gcc-4.6.0
6
7 (Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-libs/libsmbios/files/libsmbios-2.2.26-gcc46.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsmbios/files/libsmbios-2.2.26-gcc46.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsmbios/files/libsmbios-2.2.26-gcc46.patch?rev=1.1&content-type=text/plain
14
15 Index: libsmbios-2.2.26-gcc46.patch
16 ===================================================================
17 --- libsmbios-2.2.26/Makefile.am
18 +++ libsmbios-2.2.26/Makefile.am
19 @@ -18,8 +18,8 @@
20 TESTS=
21
22 AM_CPPFLAGS = -I$(top_builddir)/out/include -I$(top_srcdir)/src/include -DLIBSMBIOS_LOCALEDIR=\"$(localedir)\"
23 -AM_CFLAGS = -Werror -Wall
24 -AM_CXXFLAGS = -Werror -Wall
25 +AM_CFLAGS = -Wall
26 +AM_CXXFLAGS = -Wall
27 AM_LDADD = $(LIBINTL)
28 AM_LDFLAGS = -L$(top_builddir)/out/ -Wl,--no-undefined @LDFLAG_AS_NEEDED@
29
30 --- libsmbios-2.2.26/src/include/smbios/config/compiler/gcc.hpp
31 +++ libsmbios-2.2.26/src/include/smbios/config/compiler/gcc.hpp
32 @@ -113,7 +113,7 @@
33 # error "Compiler not configured - please reconfigure"
34 #endif
35 //
36 -#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))
37 +#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6))
38 # if defined(LIBSMBIOS_ASSERT_CONFIG)
39 # error "Unknown compiler version - please run the configure tests and report the results"
40 # else
41 --- libsmbios-2.2.26/src/include/smbios_c/config/compiler/gcc.h
42 +++ libsmbios-2.2.26/src/include/smbios_c/config/compiler/gcc.h
43 @@ -24,7 +24,7 @@
44 # error "GCC versions < 2.90 not supported"
45 #endif
46 //
47 -#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))
48 +#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6))
49 # if defined(LIBSMBIOS_C_ASSERT_CONFIG)
50 # error "Unknown compiler version - please run the configure tests and report the results"
51 # else