svn commit: trunk/buildroot
Author: jacmet
Date: 2007-06-19 08:19:27 -0700 (Tue, 19 Jun 2007) New Revision: 18856
Log:
Hide troublesome environment variables from sub processes (E.G. screws up gdb, busybox, ..)
Modified:
trunk/buildroot/Makefile
Changeset:
Modified: trunk/buildroot/Makefile
===================================================================
buildroot/Makefile +7 -0
@@ -46,6 +46,13 @@ cc-option = $(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) +############################################################# +# +# Hide troublesome environment variables from sub processes +# +############################################################# +unexport CROSS_COMPILE +unexport ARCH ############################################################# #
[Buildroot] Hide troublesome environment variables from sub processes [Re: svn commit: trunk/buildroot]
Quoted 11 lines · jacmet at uclibc.org
Author: jacmet
Date: 2007-06-19 08:19:27 -0700 (Tue, 19 Jun 2007) New Revision: 18856Log:
Hide troublesome environment variables from sub processes (E.G. screws up gdb, busybox, ..)Modified:
trunk/buildroot/Makefile
You should check for these in dependencies.sh instead.
[Buildroot] Hide troublesome environment variables from sub processes [Re: svn commit: trunk/buildroot]
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"BF" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 3 lines
Quoted 3 lines
Log:
Hide troublesome environment variables from sub processes (E.G. screws up gdb, busybox, ..)
BF> You should check for these in dependencies.sh instead.
But you cannot clear the environment from within the subshell executing dependencies.sh - You can ofcause complain loudly, but doing it in the Makefile makes the system just work (tm) which seems preferable to me.
Signature · 1 line
Bye, Peter Korsgaard