Date: Mon, 21 May 2007 11:27:08 -0400 From: Mike Meyer <mwm@mired.org> To: Craig Butler <craig001@lerwick.hopto.org> Cc: freebsd-amd64@freebsd.org Subject: Re: compile 32bit port on FreeBSD 6.2 amd64 ? Message-ID: <18001.47692.41735.333931@bhuda.mired.org> In-Reply-To: <4651766B.5080901@lerwick.hopto.org> References: <4651766B.5080901@lerwick.hopto.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In <4651766B.5080901@lerwick.hopto.org>, Craig Butler <craig001@lerwick.hopto.org> typed: > Hi All > > Is there a way to compile 32bit versions of ports and 64 bit FreeBSD ? Yes. Or no, depending on what you meant. Neither the ports nor packages system supports cross-platform installation, so you'll have to build and install everything yourself. Of course, support for 32bit compilation beyond rebuilding the base system doesn't really exist. You'll need to install the 32 bit libraries from the base system; there are hooks in the makefiles to do that for you. You'll have to tell gcc to use those instead of the standard ones; the -m32 flag that causes it to generate 32bit code doesn't do that. You'll also need to install the i386 platform-dependent header files and tell gcc to use those; I don't believe there's a simple way to do that, but it's not all that complicated. > I am sure this question must have been asked in the past, but the > archives are broke atm on the mailing list. Several times, some recently. Personally, I very seldom found the archives to be useful, and use http://www.google.com/bsd instead. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18001.47692.41735.333931>