Skip to content

Commit ca06bfd

Browse files
committed
Makefile: add -I$(top_srcdir)/{include,src} to CPPFLAGS for precomputed
When performing an out-of-source-tree build, regenerating the source files for the precomputed ecmult tables places them outside the source tree. Then, when they are to be compiled, they cannot find the headers they need because the source tree is absent from their include search path. This appears to have been an oversight, as the relevant -I options are present in libsecp256k1_zkp_la_CPPFLAGS but were missing from libsecp256k1_zkp_precomputed_la_CPPFLAGS. This commit adds them.
1 parent e40fd27 commit ca06bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ noinst_HEADERS += examples/random.h
7373
PRECOMPUTED_LIB = libsecp256k1_precomputed.la
7474
noinst_LTLIBRARIES = $(PRECOMPUTED_LIB)
7575
libsecp256k1_precomputed_la_SOURCES = src/precomputed_ecmult.c src/precomputed_ecmult_gen.c
76-
libsecp256k1_precomputed_la_CPPFLAGS = $(SECP_INCLUDES)
76+
libsecp256k1_precomputed_la_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src $(SECP_INCLUDES)
7777

7878
if USE_EXTERNAL_ASM
7979
COMMON_LIB = libsecp256k1_common.la

0 commit comments

Comments
 (0)