Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass
Date: Sat, 24 Nov 2012 22:27:18
Message-Id: 20121124222706.CA87A20C65@flycatcher.gentoo.org
1 vapier 12/11/24 22:27:06
2
3 Modified: toolchain.eclass
4 Log:
5 if uClibc is built w/out shared lib support (like nommu), then pass in --disable-shared #291870 by Petric Frank
6
7 Revision Changes Path
8 1.559 eclass/toolchain.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.559&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.559&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.558&r2=1.559
13
14 Index: toolchain.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
17 retrieving revision 1.558
18 retrieving revision 1.559
19 diff -u -r1.558 -r1.559
20 --- toolchain.eclass 24 Nov 2012 21:20:02 -0000 1.558
21 +++ toolchain.eclass 24 Nov 2012 22:27:06 -0000 1.559
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2012 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.558 2012/11/24 21:20:02 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.559 2012/11/24 22:27:06 vapier Exp $
27 #
28 # Maintainer: Toolchain Ninjas <toolchain@g.o>
29
30 @@ -1125,7 +1125,15 @@
31 *-freebsd*) needed_libc=freebsd-lib;;
32 *-gnu*) needed_libc=glibc;;
33 *-klibc) needed_libc=klibc;;
34 - *-uclibc*) needed_libc=uclibc;;
35 + *-uclibc*)
36 + if ! echo '#include <features.h>' | \
37 + $(tc-getCPP ${CTARGET}) -E -dD - 2>/dev/null | \
38 + grep -q __HAVE_SHARED__
39 + then #291870
40 + confgcc+=" --disable-shared"
41 + fi
42 + needed_libc=uclibc
43 + ;;
44 *-cygwin) needed_libc=cygwin;;
45 x86_64-*-mingw*|\
46 *-w64-mingw*) needed_libc=mingw64-runtime;;