cc can't build 32-bit executables on amd64
Jonathan Noack
noackjr at alumni.rice.edu
Mon May 1 22:56:07 UTC 2006
Mikhail Teterin wrote:
> понеділок 01 травень 2006 17:25, Paul Allen написав:
>> This was originally mentioned in amd64/76224 which was closed by obrien
>> with the terse remark: "We don't yet support building 32-bit apps on a
>> 64-bit system. We only barely support *running* them at this point."
>
> I may be missing something huge, but, it seems to me, that my little patch is
> sufficient to point cc to the right direction. With it I can create 32-bit
> executables. Thus created lame, for example (from the audio/lame port) works
> and happily converts mp3 files (using assembler-optimized routines available
> only for 32-bit i386).
Did you miss the previous reply which mentioned using '-B/usr/lib32
-B/usr/local/lib32' in addition to '-m32'? From gcc(1):
The run-time support file 'libgcc.a' is also searched for using the '-B'
prefix, if needed. If it is not found there, the two standard prefixes
above are tried, and that is all. The file is left out of the link if
it is not found by those means. Most of the time, on most machines,
'libgcc.a' is not actually necessary.
-Jonathan
More information about the freebsd-stable
mailing list