Skip to content

Commit bfdec4e

Browse files
bk2204gitster
authored andcommitted
Linux: link against libdl
Older versions of Rust on Linux, such as that used in Debian 11 in our CI, require linking against libdl. Were we linking with Cargo, this would be included automatically, but since we're not, explicitly set it in the system-specific config. This library is part of libc, so linking against it if it happens to be unnecessary will add no dependencies to the resulting binary. In addition, it is provided by both glibc and musl, so it should be portable to almost all Linux systems. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6d2af8d commit bfdec4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config.mak.uname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ ifeq ($(uname_S),Linux)
6363
PROCFS_EXECUTABLE_PATH = /proc/self/exe
6464
HAVE_PLATFORM_PROCINFO = YesPlease
6565
COMPAT_OBJS += compat/linux/procinfo.o
66+
EXTLIBS += -ldl
6667
# centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7.
6768
ifneq ($(findstring .el7.,$(uname_R)),)
6869
BASIC_CFLAGS += -std=c99

0 commit comments

Comments
 (0)