build: Need options to specify BDB location #3921

issue laanwj openend 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:

    0--with-bdb-libdir=
    1--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:

    0./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 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.

  6. laanwj assigned theuni on Sep 29, 2016
  7. laanwj referenced this in commit 0cf79fb100 on Feb 7, 2017
  8. laanwj referenced this in commit a19f41dcac on Feb 7, 2017
  9. laanwj referenced this in commit bebd78393c on Feb 7, 2017
  10. laanwj referenced this in commit 8713de83a0 on Feb 7, 2017
  11. laanwj commented at 2:00 pm on February 8, 2017: member
    Fixed by #9705
  12. laanwj closed this on Feb 8, 2017

  13. MarcoFalke 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: 2024-12-19 00:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me