[Dnsmasq-discuss] On a 64bit system, what switches create a 32bit binary.
Kurt H Maier
khm at sciops.net
Wed Apr 13 00:24:42 BST 2016
On Mon, Apr 11, 2016 at 10:42:49PM -0500, Rob Townley wrote:
> My name server runs on 32bit hardware, but all other machines are 64bit OS
> on 64bit hardware.
>
> egrep -R -i '386|x86|32bit' did not come back with much relevant info.
>
> dnsmasq runs on all kinds of disparate hardware, so i know it is done
> everyday.
>
> (CentOS6 systems.)
You need to
yum install libc-devel.i686 libgcc.i686 compat-glibc compat-glibc-headers
then you need to edit the Makefile
CFLAGS = -m32 -Wall -W -O2
LDFLAGS = -m32
Then you should be able to run 'make' and get a usable build.
To do it properly, you should install the rpm build tools, install the
source rpm for dnsmasq, modify the .spec file to include the above flags
and build-time dependencies, and use rpmbuild to produce the package.
khm
More information about the Dnsmasq-discuss
mailing list