Skip to content

Commit

Permalink
fix linkage on Xenial (16.04)
Browse files Browse the repository at this point in the history
```
/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
```
  • Loading branch information
DeckerSU committed Sep 9, 2024
1 parent 0c42102 commit bc20c87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc20c87

Please sign in to comment.