[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: change in SHELL behavior: feature, right ?
From: |
Paul D. Smith |
Subject: |
Re: change in SHELL behavior: feature, right ? |
Date: |
Wed, 19 Apr 2006 08:18:56 -0400 |
%% Mike Frysinger <address@hidden> writes:
mf> so the question is, should gcc be making sure that the shell
mf> scripts that use SHELL pull the value from configure ? or is make
mf> broken ?
Make is not broken: this behavior WRT SHELL is mandated by the POSIX
standard.
There are various things you could do to resolve the issue:
You could set SHELL=/bin/sh (or whatever) before invoking make.
You could add "export SHELL" into your makefile, thus explicitly telling
make to export the make value of SHELL to the child process
environment. This is, of course, specific to GNU make but IIRC the GCC
makefiles already require GNU make.
You could add a setting of SHELL directly into the command script for
those rules where it makes a difference.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist