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]

Re: latest snapshot won't find C++ header files


Manfred Hollstein <manfred@s-direktnet.de> writes:

>     but simply adding "-B${exec_prefix}/${target}/bin" to the
>     appropriate ..._CFLAGS might be the better solution (again, this
>     is, what Alexandre suggested in his email).

Is this /bin at the end really needed?  Otherwise, the attached patch
that should do it...  It introduces absolute_tooldir in the top-level
Makefile and in the gcc subdir, and adds -B$(build_tooldir)/ wherever
some -B flag is issued to xgcc.  I hope this is enough, but I can't
test it myself now.

BTW, why does gcc/Makefile.in defines tooldir as .../$(target_alias),
whereas the top-level Makefile defines it as .../$(target)?

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil

tooldir.diff


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