Changing the output of uname -m or -p
Kris Kennaway
kris at FreeBSD.org
Mon Jan 14 12:19:24 PST 2008
Christian Baer wrote:
> On Mon, 14 Jan 2008 01:03:42 +0100 Kris Kennaway wrote:
>
>>> Can this even be done and if so how?
>> See the manpage, and the UNAME_* variables.
>
> One other thing: Will that change the way the system reacts in any way?
> Apps should run normally (well, a browser may give a wrong plattform
> information but that should be it). But what happens if you try to compile
> something? Will a wrong plattform or CPU variable screw up what the
> compiler spits out? Could be rather unhealthy if the compiler optimizes
> code for a sun4u on an i386. :-)
It will confuse some things, yes. e.g. buildworld and ports, and maybe
some things at runtime.
Kris
More information about the freebsd-questions
mailing list