This is the mail archive of the gcc-bugs@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: Makefiles advice needed...


On Mon, Jun 14, 1999 at 06:22:11PM -0300, Alexandre Oliva wrote:
> On Jun 14, 1999, Daniel Jacobowitz <drow@false.org> wrote:
> 
> > A lot of gcc's Makefils include ${prefix} and its relatives in
> > ${FLAGS_TO_PASS} or the equivalent - but also, a lot of other
> > Makefiles don't.
> 
> This has become mostly unnecessary when we started to demand GNU make,
> since GNU make automatically passes variables defined in the command
> line to sub-makes.  It will also implicitly pass variables defined in
> the Makefile, unless the Makefile contains a .NO_EXPORT directive.

That's what I thought - but the fact remains that the patch fixed the
problem for me.  I would also think that it shouldn't have made a
difference, but it apparently did.

Note that the .NO_EXPORT: is irrelevant in this case; unless I am
sorely  mistaken, variables explicitly declared in the Makefile
override the environment, and prefix is always explicitly declared.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/


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