Skip to content
Browse files

binutils: Offer both readelf(1)'s based on BINUTILSVER's setting.

Reported-by: John Marino <john@marino.st>
  • Loading branch information...
1 parent e091866 commit cf93bb1775189e7b4fc3a148eea045cb7aad4e50 Sascha Wildner committed
View
6 gnu/usr.bin/binutils217/readelf/Makefile
@@ -1,14 +1,8 @@
-# $DragonFly: src/gnu/usr.bin/binutils217/readelf/Makefile,v 1.1 2007/04/13 12:24:33 corecode Exp $
-
.include "../Makefile.inc0"
.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
-# No a.out vs. ELF version so don't install in /usr/libexec/elf
-BINDIR=/usr/bin
-
PROG= readelf
-SRCS= ${PROG}.c
WARNS= 1
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd -I${.OBJDIR}/../libbfd
View
3 gnu/usr.bin/binutils220/readelf/Makefile
@@ -2,9 +2,6 @@
.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
-# No a.out vs. ELF version so don't install in /usr/libexec/elf
-BINDIR=/usr/bin
-
PROG= readelf
WARNS= 1
View
2 usr.bin/objformat/Makefile
@@ -1,5 +1,4 @@
# $FreeBSD: src/usr.bin/objformat/Makefile,v 1.15 1999/12/24 15:18:19 green Exp $
-# $DragonFly: src/usr.bin/objformat/Makefile,v 1.13 2008/05/14 15:02:48 hasso Exp $
PROG= objformat
NOSHARED?= YES
@@ -30,6 +29,7 @@ LINKS+= ${BINDIR}/objformat ${BINDIR}/nm
LINKS+= ${BINDIR}/objformat ${BINDIR}/objcopy
LINKS+= ${BINDIR}/objformat ${BINDIR}/objdump
LINKS+= ${BINDIR}/objformat ${BINDIR}/ranlib
+LINKS+= ${BINDIR}/objformat ${BINDIR}/readelf
LINKS+= ${BINDIR}/objformat ${BINDIR}/size
LINKS+= ${BINDIR}/objformat ${BINDIR}/strings
LINKS+= ${BINDIR}/objformat ${BINDIR}/strip
View
1 usr.bin/objformat/objformat.c
@@ -77,6 +77,7 @@ static struct command commands[] = {
{"objcopy", BINUTILS2},
{"objdump", BINUTILS2},
{"ranlib", BINUTILS2},
+ {"readelf", BINUTILS2},
{"size", BINUTILS2},
{"strings", BINUTILS2},
{"strip", BINUTILS2},

0 comments on commit cf93bb1

Please sign in to comment.
Something went wrong with that request. Please try again.