<p>You might ind useful these quote from <em>configure</em> docs</p>

<p><a href="https://www.sourceware.org/autobook/autobook/autobook_85.html" rel="nofollow">Enabling static libraries for a package which consists of only dynamic modules makes no sense, and the package author would probably have decided to ignore such requests</a></p>

<p><a href="https://www.sourceware.org/autobook/autobook/autobook_86.html#SEC86" rel="nofollow">... `AC_DISABLE_STATIC'
These macros tell libtool to not try and build either shared or static libraries respectively. libtool will always try to build something however, so even if you turn off static library building in 'configure.in', building your package for a target host without shared library support will fallback to building static archives.</a></p>

<p>In other words, check your code for presence of particular macro in configure.in files across subtree. it may have been decided to prevent making it static.</p>

CC BY-SA 3.0
2014-12-15T14:14:33.373Z
2014-12-15T14:14:33.373Z
silpol
<p>I'm trying to build bitcoind from source on Ubuntu 13.04:</p>

<pre><code>$ apt-get install libboost-all-dev ccache pkg-config # deps
$ git clone https://github.com/bitcoin/bitcoin.git
$ cd bitcoin
$ ./configure --without-qt --with-incompatible-bdb
$ make
</code></pre>

<p>It works !</p>

<p>I'm looking for way to build static binary.</p>

<p>However, I can not find --enable-static option in configure. How should I build static bitcoind properly?</p>

<bitcoind><development><linux><ubuntu>
Building from source static bitcoind on Ubuntu
strand
# Building from source static bitcoind on Ubuntu

(Asked by: username_0 on 2013-11-15)

I'm trying to build bitcoind from source on Ubuntu 13.04:

```
$ apt-get install libboost-all-dev ccache pkg-config # deps
$ git clone https://github.com/bitcoin/bitcoin.git
$ cd bitcoin
$ ./configure --without-qt --with-incompatible-bdb
$ make

```

It works !

I'm looking for way to build static binary.

However, I can not find --enable-static option in configure. How should I build static bitcoind properly?

**Tags:** bitcoind, development, linux, ubuntu


---

## 1 answers

### Answer by username_1 on 2014-12-15. Score: 1

You might ind useful these quote from *configure* docs

[Enabling static libraries for a package which consists of only dynamic modules makes no sense, and the package author would probably have decided to ignore such requests](https://www.sourceware.org/autobook/autobook/autobook_85.html)

[... `AC\_DISABLE\_STATIC'
These macros tell libtool to not try and build either shared or static libraries respectively. libtool will always try to build something however, so even if you turn off static library building in 'configure.in', building your package for a target host without shared library support will fallback to building static archives.](https://www.sourceware.org/autobook/autobook/autobook_86.html#SEC86)

In other words, check your code for presence of particular macro in configure.in files across subtree. it may have been decided to prevent making it static.


---

