Unset variables

Thomas Pegg thomasp at linuxfromscratch.org
Fri Sep 30 10:43:24 PDT 2005


On Fri, 2005-09-30 at 17:45 +0200, David Rosal wrote:
> Hello.
> 
> Is there any element to unset an environment variable in the XML 
> profiles? or should it be done with <execute>:
> 
> <execute command="unset">
> 	<param>my_var</param>
> </execute>

Yes, it's part of the environment tag. A prime example is when we unset
C{,XX)FLAGS for binutils, gcc and glibc in the profiles.

Just use a block like this:
<environment>
  <variable name="some variable name" />
</environment>
--
Thomas
LFS User : 4729 / Linux User : 298329
kitt - Powered by: Linux 2.6.12.3
12:41:47 up 10 days, 4:26, 4 users, load average: 0.28, 0.59, 0.81

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20050930/9ac6408e/attachment.sig>


More information about the alfs-discuss mailing list