| 1 | GLEP: 47 |
1 | GLEP: 47 |
| 2 | Title: Creating 'safe' environment variables |
2 | Title: Creating 'safe' environment variables |
| 3 | Version: $Revision: 1.3 $ |
3 | Version: $Revision: 1.4 $ |
| 4 | Last-Modified: $Date: 2006/02/12 19:57:57 $ |
4 | Last-Modified: $Date: 2006/02/13 21:00:50 $ |
| 5 | Author: Diego Pettenò, Fabian Groffen |
5 | Author: Diego Pettenò, Fabian Groffen |
| 6 | Status: Draft |
6 | Status: Draft |
| 7 | Type: Standards Track |
7 | Type: Standards Track |
| 8 | Content-Type: text/x-rst |
8 | Content-Type: text/x-rst |
| 9 | Created: 14-Oct-2005 |
9 | Created: 14-Oct-2005 |
| … | |
… | |
| 170 | *-*-darwin* -> KERNEL="Darwin" ELIBC="Darwin" |
170 | *-*-darwin* -> KERNEL="Darwin" ELIBC="Darwin" |
| 171 | *-*-netbsd* -> KERNEL="NetBSD" ELIBC="NetBSD" |
171 | *-*-netbsd* -> KERNEL="NetBSD" ELIBC="NetBSD" |
| 172 | *-*-solaris* -> KERNEL="Solaris" ELIBC="Solaris" |
172 | *-*-solaris* -> KERNEL="Solaris" ELIBC="Solaris" |
| 173 | |
173 | |
| 174 | A way to achieve this is proposed by Mike Frysinger, which |
174 | A way to achieve this is proposed by Mike Frysinger, which |
| 175 | suggests to have a env-map file, for instance filled with:: |
175 | suggests to have an env-map file, for instance filled with:: |
| 176 | |
176 | |
| 177 | % cat env-map |
177 | % cat env-map |
| 178 | *-linux-* KERNEL=linux |
178 | *-linux-* KERNEL=linux |
| 179 | *-gnu ELIBC=glibc |
179 | *-gnu ELIBC=glibc |
| 180 | x86_64-* ARCH=amd64 |
180 | x86_64-* ARCH=amd64 |