This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: multiarch proposal
- From: Goswin von Brederlow <goswin-v-b at web dot de>
- To: "Matt Rice" <ratmice at gmail dot com>
- Cc: "Goswin von Brederlow" <goswin-v-b at web dot de>, Binutils <binutils at sourceware dot org>
- Date: Fri, 02 May 2008 13:46:40 +0200
- Subject: Re: multiarch proposal
- References: <87skxbmqdq.fsf@frosties.localdomain> <8ba6bed40805020330n40070a02xee82f88a46cea205@mail.gmail.com>
"Matt Rice" <ratmice@gmail.com> writes:
> I assume this is some sugar so you don't have to specify -L?
> anyhow if you don't mind using a bit of magic and specifying
> -L/lib/arch/ etc you might be able to do this without patching
> anything
> by using a substitution sequence
>
> libfoo.so: foo.o
> gcc -fPIC -shared -o libfoo.so -Wl,-soname='$${ARCH}$@' $<
The basic problem is that if I convert libfoo to multiarch then I have
to patch every libfoo using source. That is backwards.
Further I would have to do for >10000 source packages in debian. That
is clearly inpractical.
>...
> anyhow... it doesn't seem like something which absolutely requires ld support,
> its just rather tedious when doing it at a distribution level having
> to manually specify everythings libdir...
ld is just the one common point in all of this where a trivial change
would solve the problem. And the cost for systems not using it is a
measly stat call.
MfG
Goswin