Skip to content

Commit

Permalink
build: fix build on xenial (16.04)
Browse files Browse the repository at this point in the history
Without -fPIC for libcryptoconditions_core.a build will end with
error below on Xenial:

```
/usr/bin/ld: cryptoconditions/libcryptoconditions_core.a(libcryptoconditions_core_a-cryptoconditions.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
cryptoconditions/libcryptoconditions_core.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
```
  • Loading branch information
DeckerSU committed Nov 17, 2023
1 parent b5976fe commit 6b906fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptoconditions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ libcryptoconditions_core_a_SOURCES = \
src/asn/per_decoder.c \
src/asn/per_encoder.c \
src/asn/per_opentype.c
libcryptoconditions_core_a_CPPFLAGS=-I. -I./src/include -I./src/asn
libcryptoconditions_core_a_CPPFLAGS=-I. -I./src/include -I./src/asn -fPIC

test:
bash -c '[ -d .env ] || virtualenv .env -p python3'
Expand Down

0 comments on commit 6b906fd

Please sign in to comment.