This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Allow custom flags passed to target-lib builds


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]