Skip to content

build: fix build on xenial (16.04)#608

Merged
ca333 merged 1 commit intodevfrom
patch-xenial-build
Jan 26, 2024
Merged

build: fix build on xenial (16.04)#608
ca333 merged 1 commit intodevfrom
patch-xenial-build

Conversation

@DeckerSU
Copy link
Copy Markdown

This should resolve the build issue on Xenial (Ubuntu 16.04). Officially, we do not support it as it has reached its End of Life (EOL). However, since building under Xenial is still possible, it might be a good idea to fix it. Moreover, binaries built under Xenial should also function on higher versions of Ubuntu / Linux distributions with a higher LIBC version.

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

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
```
@ca333 ca333 merged commit 4696d1d into dev Jan 26, 2024
Alrighttt pushed a commit to Alrighttt/komodo that referenced this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants