From bc20c878aeedafe728fbe8316970c58d45c0da33 Mon Sep 17 00:00:00 2001 From: DeckerSU Date: Mon, 9 Sep 2024 22:11:50 +0200 Subject: [PATCH] fix linkage on Xenial (16.04) ``` /usr/bin/ld: libcc.a(libcc_a-cclib.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC libcc.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status Makefile:2305: recipe for target 'komodod' failed make[2]: *** [komodod] Error 1 ``` --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index 00d04f13d45..52d0bb76961 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -369,6 +369,7 @@ libbitcoin_wallet_a_SOURCES = \ # a static library for cryptoconditions libcc_a_SOURCES = cc/cclib.cpp libcc_a_CXXFLAGS = -DBUILD_CUSTOMCC -I../secp256k1/include -I../depends/$(shell echo `../depends/config.guess`/include) -I./univalue/include -I./cryptoconditions/include -I./cryptoconditions/src -I./cryptoconditions/src/asn -I. -I./cc +libcc_a_CPPFLAGS = -fPIC # libcc_a_LDFLAGS = -version-info 0:0:0 # crypto primitives library