forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-libs/libsecp256k1-0.2.0: enable multilib build
See: bitcoin-core/secp256k1#1160 See: https://gitlab.com/bitcoin/gentoo/-/commit/3de7be797ecd2d18ac126c71e5e6f8a278fc786b Signed-off-by: Matt Whitlock <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
dev-libs/libsecp256k1/files/0.2.0-fix-out-of-source-tree-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 31105e8836ec45f87f3ae3c522a7e1587785a1cc Mon Sep 17 00:00:00 2001 | ||
From: Matt Whitlock <[email protected]> | ||
Date: Mon, 21 Nov 2022 22:13:04 -0500 | ||
Subject: [PATCH] Makefile: add -I$(top_srcdir)/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_la_CPPFLAGS but were missing from | ||
libsecp256k1_precomputed_la_CPPFLAGS. This commit adds them. | ||
--- | ||
Makefile.am | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/Makefile.am b/Makefile.am | ||
index ad50504..727e51f 100644 | ||
--- a/Makefile.am | ||
+++ b/Makefile.am | ||
@@ -73,7 +73,7 @@ noinst_HEADERS += examples/random.h | ||
PRECOMPUTED_LIB = libsecp256k1_precomputed.la | ||
noinst_LTLIBRARIES = $(PRECOMPUTED_LIB) | ||
libsecp256k1_precomputed_la_SOURCES = src/precomputed_ecmult.c src/precomputed_ecmult_gen.c | ||
-libsecp256k1_precomputed_la_CPPFLAGS = $(SECP_INCLUDES) | ||
+libsecp256k1_precomputed_la_CPPFLAGS = -I$(top_srcdir)/src $(SECP_INCLUDES) | ||
|
||
if USE_EXTERNAL_ASM | ||
COMMON_LIB = libsecp256k1_common.la | ||
-- | ||
2.39.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters