[PATCH] Allow custom flags passed to target-lib builds
Richard Guenther
richard.guenther@gmail.com
Thu Nov 24 15:09:00 GMT 2005
On 11/24/05, Paolo Bonzini <bonzini@gnu.org> wrote:
> Richard Guenther wrote:
> > This patch allows to override f.i. toolexeclibdir for libgfortran build,
> > so a special libgfortran can be built and installed from the packaging
> > machinery like
> >
> > make clean-target-libgfortran
> > make all-target-libgfortran CFLAGS="-march=pentiumpro -msse2 -mfpmath=sse,387" FFLAGS="-msse2 -mfpmath=sse,387"
> > make install-target-libgfortran USER_TARGET_FLAGS='toolexeclibdir=\$(libdir)/i686/sse2'
>
> If it is just for the sake of install-target-libgfortran, why can't you
> just do
>
> make -C */libgfortran install toolexeclibdir='$(libdir)/i686/sse2'
Sure, that is what I was doing. Does not work for multilib, though. And
while I'm currently only using it for libgfortran, it may be useful elsewhere?
Richard.
More information about the Gcc-patches
mailing list