This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: LDFLAGS handling in V3
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