List Info

Thread: forcing compilation/run time linking of lib32 on amd64




forcing compilation/run time linking of lib32 on amd64
country flaguser name
United States
2007-10-24 15:49:24
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?
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: forcing compilation/run time linking of lib32 on amd64
user name
2007-10-24 16:05:35
> 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
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )