switch to the new libelf

This commit is contained in:
christos 2014-03-09 17:10:12 +00:00
parent 0c84150c90
commit 482608c0a5
2 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2012/12/16 06:47:39 apb Exp $
# $NetBSD: Makefile,v 1.8 2014/03/09 17:10:12 christos Exp $
HOSTLIB= elf
@ -31,11 +31,14 @@ SRCS= elf_begin.c \
gelf_rel.c gelf_rela.c \
gelf_shdr.c gelf_sym.c gelf_syminfo.c gelf_symshndx.c \
gelf_xlate.c \
libelf.c \
elf.c \
libelf_align.c libelf_allocate.c libelf_ar.c \
libelf_ar_util.c \
libelf_checksum.c \
libelf_data.c \
libelf_ehdr.c libelf_extended.c \
libelf_memory.c \
libelf_open.c \
libelf_phdr.c \
libelf_shdr.c \
libelf_xlate.c \
@ -43,10 +46,10 @@ SRCS= elf_begin.c \
LIBELF_GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c
LIBELF_DIR= ${.CURDIR}/../../external/bsd/libelf/dist
LIBELF_DIR= ${.CURDIR}/../../external/bsd/elftoolchain/dist/libelf
CLEANFILES+= ${LIBELF_GENSRCS}
CPPFLAGS+= -I${.CURDIR}/../compat -I${LIBELF_DIR}
CPPFLAGS+= -I${.CURDIR}/../compat -I${LIBELF_DIR} -I${LIBELF_DIR}/../common
CPPFLAGS+= -I${TOOLDIR}/include/nbinclude
CPPFLAGS+= -DLIBELF_TEST_HOOKS

View File

@ -1,4 +1,4 @@
# $NetBSD: libelf.inc,v 1.1 2009/12/21 18:21:18 thorpej Exp $
# $NetBSD: libelf.inc,v 1.2 2014/03/09 17:10:12 christos Exp $
LIBELFSRCDIR= ${.CURDIR}/../../external/bsd/libelf/dist
LIBELFSRCDIR= ${.CURDIR}/../../external/bsd/elftoolchain/dist/libelf
LIBELFOBJDIR!= cd ${.CURDIR}/../libelf && ${PRINTOBJDIR}