Gentoo Archives: gentoo-alt

From: Michael Weiser <michael@×××××××××××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] linkage of libiconv on mac os x
Date: Thu, 27 Mar 2008 18:45:12
Message-Id: 20080327184154.GA11871@weiser.dinsnail.net
In Reply to: Re: [gentoo-alt] linkage of libiconv on mac os x by Fabian Groffen
1 On Thu, Mar 27, 2008 at 06:57:00PM +0100, Fabian Groffen wrote:
2
3 > > The cause seems obvious: If some package doesn't add
4 > > -I${EPREFIX}/usr/include and -L${EPREFIX}/usr/lib to its CFLAGS and
5 > > LDFLAGS, it will link against the system's libiconv. If this package
6 > > happens to be a library like glib, it pulls it into all the binaries
7 > > that link against it.
8
9 > This is exactly the reason we are using wrappers that inject those
10 > flags. If gcc and ld aren't first in your default search-path, things
11 > will get difficult.
12
13 Where would I find those wrappers? Because I've just emerge'd glib after
14 changing into prefix using startprefix which gave me this path:
15
16 PATH="/usr/local/gentoo/usr/sbin:/usr/local/gentoo/usr/bin:/usr/local/gentoo/sbin:/usr/local/gentoo/bin:/usr/local/gentoo/opt/bin:/usr/local/gentoo/usr/i686-apple-darwin9/binutils-bin/20080215:/usr/local/gentoo/usr/i686-apple-darwin9/gcc-bin/4.0.1:/usr/sbin:/usr/bin:/sbin:/bin"
17
18 and those binaries:
19
20 root@esgaroth:/usr/local/gentoo/usr/bin $ which gcc
21 /usr/local/gentoo/usr/bin/gcc
22 root@esgaroth:/usr/local/gentoo/usr/bin $ which i686-apple-darwin9-gcc
23 /usr/local/gentoo/usr/bin/i686-apple-darwin9-gcc
24 root@esgaroth:/usr/local/gentoo/usr/bin $ which ld
25 /usr/local/gentoo/usr/bin/ld
26
27 and I still get:
28
29 michael@esgaroth:~ # otool -L /usr/local/gentoo/usr/lib/libglib-2.0.dylib
30 /usr/local/gentoo/usr/lib/libglib-2.0.dylib:
31 /usr/local/gentoo/usr/lib/libglib-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.1.0)
32 /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
33 /usr/local/gentoo/usr/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.1.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 bye,
38 Micha
39 --
40 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>