Date: Fri, 4 Jan 2002 11:46:49 -0800 From: "Ralph N. Smith" <ralph@webcom.com> To: John Baldwin <jhb@freebsd.org> Cc: Stephen Montgomery-Smith <stephen@math.missouri.edu>, freebsd-hackers@freebsd.org, Alfred Perlstein <bright@mu.org> Subject: Re: Tell gcc I have a i686 Message-ID: <20020104114649.A8422@ralph.smithton.com> In-Reply-To: <XFMail.020104112055.jhb@FreeBSD.org>; from jhb@freebsd.org on Fri, Jan 04, 2002 at 11:20:55AM -0800 References: <3C35F513.2F16AC08@math.missouri.edu> <XFMail.020104112055.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 04, 2002 at 11:20:55AM -0800, John Baldwin wrote:
>
> On 04-Jan-02 Stephen Montgomery-Smith wrote:
> > Alfred Perlstein wrote:
> >>
> >> * Stephen Montgomery-Smith <stephen@math.missouri.edu> [020104 12:02] wrote:
...
> >> > But arch doesn't exist on FreeBSD.
> >>
> >> Isn't this somewhat trivial?
> >>
> >> ARCH=i686
> >> CFLAGS+=-D${ARCH}
> >>
> >> ?
> >>
> >
> >
> > What I want is a makefile that automatically detects whether it is on an
> > i686 or not (not for me to tell it so).
>
> This doesn't support a user who wants to compile an app that they want to run
> on some other machine. :) On FreeBSD, you can see if CPUTYPE is set from
> make.conf, but it's not required to be set.
However, if this behavior is insisted upon I would recommend doing
something with the output of 'sysctl hw.model'. Implementation is
left as an exercise for the reader.
Ralph
--
Ralph N. Smith
ralph@webcom.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020104114649.A8422>
