Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix build on xenial (16.04) #608

Merged
merged 1 commit into from
Jan 26, 2024
Merged

build: fix build on xenial (16.04) #608

merged 1 commit into from
Jan 26, 2024

Conversation

DeckerSU
Copy link

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
18 checks passed
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