build: Need options to specify BDB location #3921

issue laanwj opened this issue on March 21, 2014
  1. laanwj commented at 7:28 AM on March 21, 2014: member

    Many people compile BerkeleyDb 4.8 themselves and understandably don't want to install it system-wide.

    I'd suggest the following names:

    --with-bdb-libdir=
    --with-bdb-includedir=
    

    One can always override LDFLAGS and CFLAGS to find them manually, don't forget that you need to manualy specify optimization flags in that case ie:

    ./configure LDFLAGS="-L/path/to/libs" CPPFLAGS="-I/path/to/includes -O2"
    

    But it'd be easier if there was a flag for this as it is very common now.

    Alternative would be BDB_CFLAGS and BDB_LIBS, analogous to SSL_CFLAGS and SSL_LIBS.

  2. laanwj added the label Build system on Mar 21, 2014
  3. laanwj added the label Wallet on Apr 2, 2014
  4. theuni commented at 5:29 PM on April 7, 2014: member

    @luke-jr: another one for bitcoin_find_bdb48.m4. Again, I'll take this on, just giving you first dibs.

  5. laanwj cross-referenced this on Apr 19, 2014 from issue Update build-unix.md by tedjweb
  6. laanwj cross-referenced this on Nov 11, 2015 from issue source build non 4.8 Bdb headers issue by anantshri
  7. laanwj commented at 6:45 AM on September 28, 2016: member

    I'm trying to build Bitcoin Core on FreeBSD and would be very much helped by this. Also in our build guides we routinely override LDFLAGS/CXXFLAGS for this purpose, which shouldn't be necessary if there was an option or a specific env variable for this:

    Anyone up for this? I can try to do it myself but I don't know that much about m4 and will probably come up with a hacky solution.

  8. laanwj cross-referenced this on Sep 28, 2016 from issue Replacing Boost Test Framework by JeremyRubin
  9. laanwj assigned theuni on Sep 29, 2016
  10. laanwj referenced this in commit 0cf79fb100 on Feb 7, 2017
  11. laanwj referenced this in commit a19f41dcac on Feb 7, 2017
  12. laanwj cross-referenced this on Feb 7, 2017 from issue build: Add options to override BDB cflags/libs by laanwj
  13. laanwj referenced this in commit bebd78393c on Feb 7, 2017
  14. laanwj referenced this in commit 8713de83a0 on Feb 7, 2017
  15. laanwj commented at 2:00 PM on February 8, 2017: member

    Fixed by #9705

  16. laanwj closed this on Feb 8, 2017

  17. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC