Skip to content

Commit 7e21162

Browse files
authored
fix linkage on Xenial (16.04) (#627)
``` /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 ```
1 parent f8f5ebe commit 7e21162

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ libbitcoin_wallet_a_SOURCES = \
369369
# a static library for cryptoconditions
370370
libcc_a_SOURCES = cc/cclib.cpp
371371
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
372+
libcc_a_CPPFLAGS = -fPIC
372373
# libcc_a_LDFLAGS = -version-info 0:0:0
373374

374375
# crypto primitives library

0 commit comments

Comments
 (0)