summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-02-12 21:15:31 +0000
committeremaste <emaste@FreeBSD.org>2016-02-12 21:15:31 +0000
commit5e2392fbf9eeeee4d3dfc91390f7fa4a7ea99eac (patch)
treec567663b464704375c3ae15f286b05bcdfb6fb5f /usr.bin
parent3c199a1603840b41f079ef2a95ca07b300fbd844 (diff)
downloadFreeBSD-src-5e2392fbf9eeeee4d3dfc91390f7fa4a7ea99eac.zip
FreeBSD-src-5e2392fbf9eeeee4d3dfc91390f7fa4a7ea99eac.tar.gz
elfcopy: enable PE and EFI support
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/elfcopy/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/elfcopy/Makefile b/usr.bin/elfcopy/Makefile
index dc6dd47..0800a0c 100644
--- a/usr.bin/elfcopy/Makefile
+++ b/usr.bin/elfcopy/Makefile
@@ -17,13 +17,14 @@ CLEANFILES+= objcopy.1
PROG= elfcopy
.endif
-SRCS= archive.c ascii.c binary.c main.c sections.c segments.c symbols.c
+SRCS= archive.c ascii.c binary.c main.c pe.c sections.c segments.c symbols.c
WARNS?= 5
-LIBADD= archive elftc elf
+LIBADD= archive elftc elf pe
-CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
+CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/libpe -I${ELFTCDIR}/common
+CFLAGS+=-DWITH_PE=1
MAN= ${PROG}.1 strip.1
OpenPOWER on IntegriCloud