forcing compilation/run time linking of lib32 on amd64
Josh Carroll
josh.carroll at gmail.com
Wed Oct 24 14:05:46 PDT 2007
> I am writing some demo code (for teaching C) and need to have the same
> program run on a 32 bit machine and a 64 bit machine (showing that int's
> are always word length)... I have 8-current amd64 how do I force it to
> compile with 32 bit words?
Add the following to your gcc command line:
-m32 -B/usr/lib32 -L/usr/lib32
Regards,
Josh
More information about the freebsd-questions
mailing list