debugedit: Build newly imported debugedit

This commit is contained in:
Виталий Чикунов 2020-11-09 22:50:35 +03:00
parent 90136608c8
commit 08c5331f48
3 changed files with 16 additions and 1 deletions

View File

@ -251,6 +251,20 @@ AC_CHECK_LIB(elf, gelf_getehdr, [
])
AC_SUBST(WITH_LIBELF_LIB)
WITH_LIBDW_LIB=
AC_CHECK_LIB(dw, dwelf_strent_off, [
AC_DEFINE(HAVE_LIBDW, 1, [Define to 1 if you have the 'dw' library (-ldw).])
WITH_LIBDW_LIB="-ldw"
])
AC_SUBST(WITH_LIBDW_LIB)
WITH_LIBRPMIO_LIB=
AC_CHECK_LIB(rpmio, rpmDigestUpdate, [
AC_DEFINE(HAVE_LIBRPMIO, 1, [Define to 1 if you have the 'rpmio' library (-lrpmio).])
WITH_LIBRPMIO_LIB="-lrpmio"
])
AC_SUBST(WITH_LIBRPMIO_LIB)
AC_CHECK_HEADERS(thread.h pthread.h synch.h semaphore.h gelf.h)
dnl Better not use fchmod at all.

View File

@ -91,6 +91,7 @@ BuildPreReq: rpm >= 3.0.6-ipl24mdk, %_bindir/subst
# For debugedit.
BuildPreReq: elfutils-devel
BuildRequires: librpm-devel
# Automatically added by buildreq on Thu Apr 23 2009 and edited manually.
BuildRequires: libdb4.7-devel libelf-devel liblzma-devel libpopt-devel python-devel zlib-devel

View File

@ -55,7 +55,7 @@ suggest_bpp_SOURCES = suggest_bpp.c
suggest_bpp_LDADD = -lm $(LDADD)
debugedit_SOURCES = debugedit.c hashtab.c hashtab.h
debugedit_LDADD = @WITH_LIBELF_LIB@ @LIBBEECRYPT@ @LIBPOPT@
debugedit_LDADD = @WITH_LIBELF_LIB@ @LIBBEECRYPT@ @LIBPOPT@ @WITH_LIBDW_LIB@ @WITH_LIBRPMIO_LIB@
rpmvercmp_SOURCES = rpmvercmp.c