This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: LDFLAGS handling in V3
On Mon, Jan 02, 2006 at 04:37:05PM -0200, Alexandre Oliva wrote:
> Adding -Xcompiler to LDFLAGS is just wrong, since -Xcompiler is not a
> valid link-time flag for the compiler driver. That's why we came up
> with LTLDFLAGS. So, yes, I disagree with Daniel's suggestion, and
> stand by my earlier suggestion.
>
> > Or, do you want to just pass LTLDFLAGS to all
> > subdirectories?
>
> That would be fine, but only if we know subdirectories don't want to
> tweak it, and want to stop them from doing so. I don't think we want
> to go that far.
Why not define LTLDFLAGS to be the libtool analogue of LDFLAGS;
directly based on the user supplied LDFLAGS, and subdirectories can put
their own additions into a separate variable, just as we do for
CFLAGS and LDFLAGS already? Then the top level can set this, once,
instead of duplicating it.
I don't feel strongly about this. I suppose it could have unintuitive
results if you ran make in a subdirectory and specified LDFLAGS. But
eventually _someone_'s got to copy whatever change we make here to
every other subdirectory which uses libtool.
--
Daniel Jacobowitz
CodeSourcery