D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] MACHTYPE

 

On Sun, 22 Apr 2012 10:36:05 +0100
Brad Rogers <brad@xxxxxxxxxxxx> wrote:

> On Sun, 22 Apr 2012 10:12:47 +0100
> Neil Williams <linux@xxxxxxxxxxxxxx> wrote:
> 
> Hello Neil,
> 
> > MACHTYPE isn't even set as an environment variable in Debian, so don't
> 
> It is here.  I never set it, but '$ echo $MACHTYPE' prints
> 'x86_64-pc-linux-gnu' to the console.
> 
> Maybe it got set when I installed compiler tools installed from the
> repos. IDK.

Not the same thing. That's a bash builtin which is build-dependent.
Don't rely on it.

shell builtin != environment variable.

Depending on what you are trying to achieve, ask the kernel, the
compiler or the packaging system for the architecture variables.

-- 
Neil Williams <linux@xxxxxxxxxxxxxx>

Attachment: pgpRTJ7u0HeB2.pgp
Description: PGP signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq