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

Add RTLD_DEEPBIND existence check (fix builds on Alpine Linux) #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aiwebb
Copy link

@aiwebb aiwebb commented May 19, 2020

Closes #187.

Checks for RTLD_DEEPBIND directly, rather than checking for __APPLE__ and __FreeBSD__

This was causing build failures in Alpine Linux, which uses musl instead of glibc and does not include RTLD_DEEPBIND:

https://git.musl-libc.org/cgit/musl/tree/include/dlfcn.h

Checks for `RTLD_DEEPBIND` directly, rather than checking for `__APPLE__` and `__FreeBSD__`

This was causing build failures in Alpine Linux, which uses `musl` instead of `glibc` and does not include `RTLD_DEEPBIND`:

https://git.musl-libc.org/cgit/musl/tree/include/dlfcn.h
@aiwebb aiwebb changed the title Add RTLD_DEEPBIND existence check Add RTLD_DEEPBIND existence check (fix builds on Alpine Linux) May 19, 2020
@pinko-fowle
Copy link

pinko-fowle commented May 13, 2022

This could fix compilation in the official Postgres Docker image. Can we please get this improvement reviewed/merged? @jeevanchalke

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.

Build fails in Alpine
2 participants