Apply only the libadd/libnames part of dbf05458e3

Add libz to the dependencies for libdwarf. Otherwise, building older
branches on recent -CURRENT might fail in the cross-tools stage with:

ld: error: undefined symbol: uncompress
>>> referenced by libdwarf_elf_init.c:233 (/usr/src/contrib/elftoolchain/libdwarf/libdwarf_elf_init.c:233)
>>>               libdwarf_elf_init.o:(_dwarf_elf_init) in archive /usr/lib/libdwarf.a

Direct commit to stable/13, since dbf05458e3 has other libdwarf
changes to support compressed ELF sections, which are more intrusive.
This commit is contained in:
Dimitry Andric 2021-12-13 22:23:44 +01:00
parent d5dd159b15
commit 8918a2875e
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ sys/elf32.h sys/elf64.h sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
mkdir -p ${.OBJDIR}/sys
ln -sf ${.ALLSRC} ${.TARGET}
LIBADD+= elf
LIBADD+= elf z
SHLIB_MAJOR= 4

View file

@ -326,7 +326,7 @@ _DP_fetch= ssl crypto
_DP_fetch= md
.endif
_DP_execinfo= elf
_DP_dwarf= elf
_DP_dwarf= elf z
_DP_dpv= dialog figpar util ncursesw
_DP_dialog= ncursesw m
_DP_cuse= pthread