Skip to content

Commit c041b18

Browse files
committed
make-binaries: Don't link against libnsl
Don't let the erl_call binary (used by eturnalctl) link against libnsl.so.1, which is no longer shipped by default on RedHat-based distributions, and isn't actually needed: | the GNU C Library has never required programs that use 'gethostbyname' | to be linked with libnsl. [ https://lists.gnu.org/archive/html/info-gnu/2017-08/msg00000.html ] Other projects are running into the same issue and don't seem to have better solutions so far, cf.: AppImageCommunity/pkg2appimage#336 astral-sh/python-build-standalone#51 Fixes #19.
1 parent ae1a0a6 commit c041b18

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project adheres to [Semantic Versioning][SemVer].
55

66
## [Unreleased]
77

8+
### Fixed
9+
- Binary release: Don't let Erlang/OTP link against libnsl.so.1, which is no
10+
longer shipped by default on RedHat-based distributions, and isn't actually
11+
needed (#19).
12+
813
## [1.7.0] - 2021-12-15
914
### Added
1015
- Introduce the `listen` option `proxy_protocol` for enabling HAproxy protocol

scripts/make-binaries

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,9 @@ build_rel()
10121012
export erl_xcomp_sysroot="$prefix"
10131013
fi
10141014
cd "$target_src_dir/$otp_dir"
1015+
# Don't link erl_call against libnsl (no longer included with glibc).
1016+
sed -i -e '/LIBS="-lnsl/d' -e '/LIBS="-lsocket/d' \
1017+
'lib/erl_interface/configure'
10151018
# The additional CFLAGS/LIBS below are required by --enable-static-nifs.
10161019
$configure \
10171020
--prefix="$prefix" \

0 commit comments

Comments
 (0)