Add better build documentation #622

issue gmaxwell openend this issue on May 23, 2019
  1. gmaxwell commented at 0:45 am on May 23, 2019: contributor

    The library is designed to be easy to use without the build system, e.g. you can build the tests with nothing more than:

    0$ gcc -o tests src/tests.c -I. -Iinclude/ -DUSE_NUM_NONE -DUSE_FIELD_INV_BUILTIN -DUSE_SCALAR_INV_BUILTIN -DUSE_FIELD_10X26 -DUSE_SCALAR_8X32 -DVERIFY
    

    We should document this fact better, because for many embedded systems the whole build system is overkill. See also #184

    Related, we should also provide packaging instructions for common OSes, see #545

  2. gmaxwell cross-referenced this on May 23, 2019 from issue Add Fedora spec file by suvayu
  3. real-or-random commented at 8:35 am on May 23, 2019: contributor
    I’m not sure if we want this but this could be made even easier with just -DUSE_BASIC_CONFIG if we include basic-config.h at the appropriate places. It’s only used for gen-context at the moment.
  4. gmaxwell commented at 9:46 am on May 23, 2019: contributor
    We could also do some ifdef decision to use 32 vs 64 bit fields by default.
  5. gmaxwell added this to the milestone initial release on May 23, 2019
  6. real-or-random commented at 8:19 am on May 29, 2019: contributor
    We currently rely on ./configure to define WORDS_BIGENDIAN, which could lead to very annoying failures.
  7. gmaxwell commented at 7:42 pm on June 3, 2019: contributor
    Maybe we should have a #warn on use of 32bit field/scalar when sizeof(void*)==8, I’ve found some cases of people publishing benchmarks that appear to have used 32bit libsecp256k1 (while comparing to avx2 code in another library…)
  8. real-or-random cross-referenced this on Jun 17, 2019 from issue Low-footprint mode by gmaxwell
  9. real-or-random commented at 3:41 pm on April 6, 2020: contributor
  10. real-or-random cross-referenced this on Nov 23, 2020 from issue Is there an option to create a shared library for Android applications? by gecng
  11. real-or-random cross-referenced this on Apr 10, 2021 from issue WIP: Add 1:1 CMake File by DesWurstes
  12. real-or-random cross-referenced this on Apr 11, 2021 from issue add ECMULT_GEN_PREC_BITS to basic_config.h by voisine
  13. real-or-random cross-referenced this on Apr 12, 2021 from issue Clean up configuration in gen_context by real-or-random


gmaxwell real-or-random

Milestone
stable release (1.0.0-rc.1)


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-22 00:15 UTC

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