Gentoo Archives: gentoo-soc

From: heroxbd <heroxbd@×××××.com>
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] Gentoo on Android, Summary for 2013.6.28-7.1
Date: Sun, 18 Aug 2013 13:19:56
Message-Id: 87li3zyw8a.fsf@proton.in.awa.tohoku.ac.jp
In Reply to: Re: [gentoo-soc] Gentoo on Android, Summary for 2013.6.28-7.1 by Luca Barbato
1 Luca Barbato <lu_zero@g.o> writes:
2
3 >>
4 >> econf --with-extra-specs='{ "dynamic-linker", "/opt/gentoo/lib/ld-linux.so.2" }'
5 >>
6 >> However, GNU autoconf/automake system automatically quote this to
7 >> a string, while we want to pass an array of structures.
8 >
9 > There is an unquote macro and you can always use eval to expand once.
10
11 Ah, I see.
12
13 >> Another solution is to prepend sysroot to dynamic linker, which is
14 >> indifferent to the runtime-prefix patch from Google, criticized by you
15 >> earlier.
16 >
17 > The Google patch is a step in a direction, just you could just unify
18 > first and make it prefix-variable later
19
20 Not sure if I understood your words. It is nearly impossible to
21 prefixify the directories afterwards, as they are conditioned by
22 -m32/-m64/-mx32, etc.
23
24 > instead of adding a prefix to all the custom patches scattered in the
25 > codebase as it is now.
26
27
28 >> Up to this point, the solution becomes complex and artificial. I
29 >> would rather use the present patch'n'prefixify method, as we used
30 >> in many ebuild, like:
31 >>
32 >> --- gcc/config/i386/linux.h 2011-06-04 03:30:39.000000000 +0900
33 >> +++ gcc/config/i386/linux.h.new 2013-07-16 19:55:09.610399047 +0900
34 >> @@ -21,4 +21,4 @@ along with GCC; see the file COPYING3.
35 >> <http://www.gnu.org/licenses/>. */
36 >>
37 >> #define GNU_USER_LINK_EMULATION "elf_i386"
38 >> -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
39 >> +#define GLIBC_DYNAMIC_LINKER "@GENTOO_PORTAGE_EPREFIX@/lib/ld-linux.so.2"
40 >
41 > So first you patch the paths with something you can sed fill later.
42
43 Yes.
44
45 > Works for me to get a result now. Then we can pester upstream
46
47 Exactly, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52556
48
49 > or just consider switching to clang (a different kind of pain to
50 > bootstrap).
51
52 ok, I'll get my hands dirty with it.