Gentoo Archives: gentoo-mips

From: "Michał Górny" <mgorny@g.o>
To: gentoo-mips@l.g.o
Cc: vapier@g.o, Alexis Ballier <aballier@g.o>, mips@g.o, multilib@g.o
Subject: Re: [gentoo-mips] On MIPS using the same CHOST for all multilib ABIs
Date: Mon, 30 Dec 2013 09:44:46
Message-Id: 20131230104425.69a086bf@gentoo.org
In Reply to: Re: [gentoo-mips] On MIPS using the same CHOST for all multilib ABIs by Mike Frysinger
1 Dnia 2013-12-29, o godz. 13:21:21
2 Mike Frysinger <vapier@g.o> napisał(a):
3
4 > we've run into issues in the past where people install a toolchain via
5 > crossdev that uses the same tuple as the non-default ABI one (e.g. people on
6 > an amd64 system do `crossdev i686-pc-linux-gnu`) and then the multilib code
7 > gets confused. but it's been much more of a hassle to try and get configure
8 > scripts to use compile tests rather than probe the CHOST, so we've just lived
9 > with this lesser evil.
10
11 Out of curiosity, does a dedicated i686 toolchain on a multilib amd64
12 host have any benefits over the toolchain's -m32 options? Well, except
13 for not needing the explicit options.
14
15
16 > > > > (1) here is not really a killer feature but I'd rather avoid
17 > > > > changing this at this point. (2) is actually a killer feature,
18 > > > > since the eclass sets CHOST properly and thanks to that
19 > > > > AC_CHECK_TOOL and friends can find multilib *-config progs and
20 > > > > stuff without any special hackery.
21 > > >
22 > > > *-config progs are dead. use pkg-config.
23 > >
24 > > ok; but shouldnt we kill that tc-getPKG_CONFIG() which returns
25 > > $CHOST-pkg-config then ?
26 >
27 > i didn't mean specifically use `pkg-config`. packages should be using .pc files
28 > instead of *-config scripts.
29
30 'Should' is far away from reality. I'd rather avoid Gentoo inventing
31 pkg-config files for random packages where upstream simply refuses to
32 do that.
33
34 Then, there's LLVM. Their llvm-config has some more options than
35 pkg-config does, and it supports selecting single components. If we're
36 to do something semi-equal to that, we'd end up with 116 pkg-config
37 files, plus around 23 for clang. And each new supported target
38 increases that number by 5-7 files.
39
40 Of course, we could put them all in a single file.. but then we're
41 replacing one crap with another. And forcing the --as-needed hack
42 on top of it.
43
44 --
45 Best regards,
46 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature