PATCH: LDFLAGS handling in V3
Mark Mitchell
mark@codesourcery.com
Thu Jul 28 18:46:00 GMT 2005
Alexandre Oliva wrote:
> On Jul 27, 2005, Mark Mitchell <mark@codesourcery.com> wrote:
>
>
>> eval libtool --mode=link ... `libtool-ldflags $(LDFLAGS)`
>
>
> eval is dangerous because it will evaluate other args twice.
Right; I confessed that later.
> What I had in mind was more like:
>
> LTLDFLAGS = $(shell libtool-ldflags $(LDFLAGS))
I like that approach; I just didn't know it was acceptable.
So, if I undersatnd correctly, the plan is:
1. Write libtool-ldflags.
2. Insert assignments to LTLDFLAGS as above, in appropriate
sub-Makefile.ams.
3. Use $(LDLDFLAGS) instaed of $(LDFLAGS) in link rules invoking libtool.
Is that right?
Thanks,
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
More information about the Gcc-patches
mailing list