Skip to content

Commit

Permalink
fix make distcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Jul 15, 2019
1 parent deec07d commit 759a6aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ endif
endif

if USE_ECMULT_STATIC_PRECOMPUTATION
CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)
CPPFLAGS_FOR_BUILD +=-I$(top_srcdir) -I$(builddir)/src

gen_context_OBJECTS = gen_context.o
gen_context_BIN = gen_context$(BUILD_EXEEXT)
Expand Down
6 changes: 5 additions & 1 deletion src/gen_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
**********************************************************************/

#include "libsecp256k1-config.h" // for ECMULT_GEN_PREC_BITS
// Autotools creates libsecp256k1-config.h, of which ECMULT_GEN_PREC_BITS is needed.
// ifndef guard so downstream users can define their own if they do not use autotools.
#if !defined(ECMULT_GEN_PREC_BITS)
#include "libsecp256k1-config.h"
#endif
#define USE_BASIC_CONFIG 1
#include "basic-config.h"

Expand Down

0 comments on commit 759a6aa

Please sign in to comment.