bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU make problem with environment variables on IRIX


From: Paul D. Smith
Subject: Re: GNU make problem with environment variables on IRIX
Date: Tue, 26 Jun 2001 15:18:10 -0400

%% Charlie Zender <address@hidden> writes:

  cz> Following is a three line Makefile which is processed differently
  cz> by GNU make version 3.79.1 on GNU/Linux vs. IRIX systems. I'm
  cz> pretty sure, but not positive, that the linux behavior is correct,
  cz> but make syntax is so bizarre maybe there's something I don't
  cz> understand.

Seems straightforward to me, at least in this case...

  cz> Here's the Makefile.tst, then the results on GNU/Linux then on IRIX:

  cz> HOME := ${HOME}_plus_foo_set_in_Makefile
  cz> tst:
  cz>   @printf "HOME = ${HOME}\n"

  cz> address@hidden:~/mk$ uname
  cz> Linux
  cz> address@hidden:~/mk$ echo $HOME
  cz> /home/zender
  cz> address@hidden:~/mk$ make -f Makefile.tst
  cz> HOME = /home/zender_plus_foo_set_in_Makefile

This is right, of course.

  cz> address@hidden:~/mk$ uname
  cz> IRIX64
  cz> address@hidden:~/mk$ echo $HOME
  cz> /home/ess/zender/zender
  cz> address@hidden:~/mk$ make -f Makefile.tst
  cz> HOME = /home/ess/zender/zender

This is "wrong", of course.

  cz> As you can see, the IRIX version of gmake does not modify the
  cz> $HOME environment variable at all. This is a big problem for me.
  cz> Is there a known workaround for IRIX? Can others duplicate this
  cz> problem?

I don't have an Irix system nor have I received any reports like this.

It looks to me like the Irix version thinks you have the make -e
command-line option set.  Are you sure you haven't set MAKEFLAGS to -e
in your Irix login environment or something similar to that?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

[Prev in Thread] Current Thread [Next in Thread]