Skip to content

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