Date: Tue, 10 Aug 2010 02:24:12 +0000 From: "b. f." <bf1783@googlemail.com> To: freebsd-questions@FreeBSD.org Cc: Depo Catcher <depocatcher@gmail.com> Subject: Re: amd64 Message-ID: <AANLkTikp1nROzjFfmg=6XvCqHTbL9tzJ4v61NvbcKCur@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
>On 8/9/2010 4:14 PM, Robert Huff wrote: >> Polytropon writes: >> >> >>> > I've installed FreeBSD-amd64. It runs very well. The packages I fetch >>> > are amd64 too, but what about the ports I compile myself? Are those >>> > amd64 too? >>> >>> Yes, as your compiler infrastructure and target platform >>> is amd64, and so is the resulting binary code. >>> > >How does it know your are on amd64? gcc auto detect of CPU? As the other person wrote, the base system compiler suite and other base system utilities are configured and compiled to build and use "amd64" binaries by default. There is only limited support for cross-building: on amd64, for example, there are some provisions for building and using 32-bit, "i386" binaries; and the base system sources have some limited support for cross-building for other architectures, by setting certain variables in the build environment. In general, one cannot just build and use any binaries on a given architecture. b.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikp1nROzjFfmg=6XvCqHTbL9tzJ4v61NvbcKCur>