This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: LDFLAGS handling in V3
Alexandre Oliva wrote:
On Jul 27, 2005, Mark Mitchell <firstname.lastname@example.org> 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
3. Use $(LDLDFLAGS) instaed of $(LDFLAGS) in link rules invoking libtool.
Is that right?