Date: Wed, 9 Mar 2011 12:52:53 -0800 From: Josh Carroll <josh.carroll@gmail.com> To: Thomas David Rivers <rivers@dignus.com> Cc: freebsd-stable@freebsd.org Subject: Re: bin/139146 still not right in FreeBSD 8.2 (-m32 on amd64)? Message-ID: <AANLkTi=CKCtNS5p4vJcAmhQ7eiuJfcM65VfFwCGTvGzf@mail.gmail.com> In-Reply-To: <201103092015.p29KFd0U077849@dave.dignus.com> References: <201103092015.p29KFd0U077849@dave.dignus.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 9, 2011 at 12:15 PM, Thomas David Rivers <rivers@dignus.com> wr=
ote:
>
> Just installed a fresh 8.2-stable on a brand-spanking-new 64-bit
> machine...
>
> But, when I try to build 32-bit programs I get problems linking,
> and I stumbled onto PR bin/139146.
>
> The PR mentions this quick test:
>
> =A0uname -sr && echo "int main () { }" > t.c && gcc -v --help 2>&1 | grep=
m32 && gcc -m32 t.c
Add -B/usr/lib32 to the gcc command line, e.g.:
echo "int main () { }" > t.c && gcc -v --help 2>&1 | grep m32 && gcc
-m32 -B/usr/lib32 t.c
Then it should work.
Josh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=CKCtNS5p4vJcAmhQ7eiuJfcM65VfFwCGTvGzf>
