View Single Post
  #4   (View Single Post)  
Old 16th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

CPUTYPE has no effect on whether or not ports are compiled as 64-bit or 32-bit. The version of the OS installed does.

Try the following to see:
  • install 64-bit version of FreeBSD
  • set CPUTYPE to pentium3
  • install Apache port
  • run file on /usr/local/bin/httpd, and notice it's a 64-bit binary
Then try the inverse:
  • install 32-bit version of FreeBSD
  • set CPUTYPE to athlon64
  • install Apache port
  • run file on /usr/local/bin/httpd and notice it's a 32-bit binary

There are options you can pass to the compiler on a 64-bit system that will cause the compiler to compile the app as a 32-bit app. However, CPUTYPE is not one of those options.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote