[Dnsmasq-discuss] On a 64bit system, what switches create a 32bit binary.

Ryan Zev Solomon ryzenold at gmail.com
Tue Apr 12 21:59:08 BST 2016


>> Yes, compile on 64bit machine to run on a 32bit machine. Same OS.
>
> To do this you need to have a cross-compilation toolchain, which is a build
> of gcc, ld and other tools, plus libc and any other libraries dnsmasq needs,
> that runs on your host (64bit) system but outputs binaries for your target
> (32bit) system.

Another option which I generally find to be easier to manage is to build 
in a virtual machine instead of getting a cross compilation toolchain 
working. So, if you need to build for x86, with CentOS 6, then set up an 
x86 VM running CentOS 6.



More information about the Dnsmasq-discuss mailing list