Danny Staple
Danny Staple

Reputation: 7332

Can python freeze be made to compile 32 bit binaries on a 64 bit linux

I've a number of python scripts that I am likely to need to distribute to users who may have minimal x86 linux setups and no guarantees of having python or a particular version of it. My desktop is an x86-84 architecture setup, but I am able to cross compile 32 bit elf's with GCC.

The python freeze script is currently outputting a 64 bit elf, plus a 64 bit .so. Is there any option/hack etc known to get this to compile to a 32 bit output?

Upvotes: 0

Views: 405

Answers (1)

ensonic
ensonic

Reputation: 3440

Could you use something likemake CFLAGS="-m32".?

Upvotes: 1

Related Questions