Bind 9.9.5-S1 Cross Compile help

Marty Lee marty at
Thu Apr 3 17:05:33 UTC 2014

Leave the —-prefix option to point to where you want it to finally be positioned
(i.e. —-prefix=/usr/local or probably just leave it out for /usr/local)

Then when you do your ‘make install’, pass in a ‘DESTDIR’ to prefix the install

make install DESTDIR=/tmp/BUILDdir

and you should find that under /tmp/BUILDdir is the set of files & dirs that you
need to package, and that the actual binaries have the right default locations
within them.

HTHS (and this works for the vast majority of GNU/Linux/OSS code)



On 3 Apr 2014, at 17:57, Olsen, Richard William (Rick) CTR DISA PEO-MA (US) <richard.w.olsen.ctr at> wrote:

> We are trying build out bind for a remote site. When I use the prefix option so that I can put it all where I can package it, it hardcodes the prefix into the named binary for several items. How do I get around that. The hardcoded entries are for rndc.key, name.conf, session.key,,, lwresd.conf. Also the session-keyfile, pid-file, and bindkeys-file lines.
> #Example:
> CC=cc CFLAGS="{arch specific options} -m64 -g" ./configure --prefix=/tmp/BUILDdir/usr/local/ --with-openssl
> #then the make and make install
> #Then pkg it all starting with:
> pkgproto /tmp/BUILDdir/usr/local/=/usr/local
> #Strings of named binary
> /tmp/BUILDdir/usr/local/etc/named.conf
> /tmp/BUILDdir/usr/local/etc/rndc.key
> /tmp/BUILDdir/usr/local/var/run/named/session.key
> _______________________________________________
> Please visit to unsubscribe from this list
> bind-users mailing list
> bind-users at

Marty Lee                         e: marty at
Technical Director                v: +44 845 869 2661
Maui Systems Ltd                  f: +44 871 433 8922
Scotland, UK                      w:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1519 bytes
Desc: not available
URL: <>

More information about the bind-users mailing list