Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] linkage of libiconv on mac os x
Date: Thu, 27 Mar 2008 20:25:51
Message-Id: 20080327202539.GK831@gentoo.org
In Reply to: Re: [gentoo-alt] linkage of libiconv on mac os x by Michael Weiser
1 On 27-03-2008 20:11:13 +0100, Michael Weiser wrote:
2 > On Thu, Mar 27, 2008 at 07:52:16PM +0100, Fabian Groffen wrote:
3 >
4 > > > > This is exactly the reason we are using wrappers that inject those
5 > > > > flags. If gcc and ld aren't first in your default search-path,
6 > > > > things
7 > > > > will get difficult.
8 > > > /usr/local/gentoo/usr/bin/gcc
9 > > > /usr/local/gentoo/usr/bin/i686-apple-darwin9-gcc
10 > > > /usr/local/gentoo/usr/bin/ld
11 >
12 > > Those all are the wrappers ;)
13 >
14 > Ah. Shouldn't it contain some tweaking of CFLAGS then?
15 >
16 > # strings /usr/local/gentoo/usr/bin/gcc | grep CFLAGS
17 > CFLAGS_%s
18
19 No, GCC is compiled in such a way that the prefix include path belongs
20 to its default search path.
21
22 > > > michael@esgaroth:~ # otool -L /usr/local/gentoo/usr/lib/libglib-2.0.dylib
23 > > > /usr/local/gentoo/usr/lib/libglib-2.0.dylib:
24 > > > /usr/local/gentoo/usr/lib/libglib-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.1.0)
25 > > > /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
26 >
27 > > This one is obviously wrong, the rest is correct. Question is, do you
28 > > have /usr/local/gentoo/lib/libiconv.2.dylib, and if so, what does
29 > > otool -L /usr/local/gentoo/lib/libiconv.2.dylib report?
30 >
31 > # otool -L /usr/local/gentoo/lib/libiconv.2.dylib
32 > /usr/local/gentoo/lib/libiconv.2.dylib:
33 > /usr/local/gentoo/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
34 > /usr/local/gentoo/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
35 > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
36
37 Then your libiconv is compiled correctly, it is just not clear to me how
38 glib can miss it. Actually, that's not your bug, but mine, as my system
39 has the same problem.
40
41
42 --
43 Fabian Groffen
44 Gentoo on a different level
45 --
46 gentoo-alt@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] linkage of libiconv on mac os x Fabian Groffen <grobian@g.o>