summaryrefslogtreecommitdiff
path: root/lib/libelf
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2019-07-01 11:52:54 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2019-07-01 11:52:54 +0000
commitb46517aa7b71917608a56531f60bab6851b6b576 (patch)
tree9dca61b68165a252a7096ca5991e1833f3d3d05d /lib/libelf
parent92aea66e57ebb7106fc216f3c152aff6284effbf (diff)
Notes
Diffstat (limited to 'lib/libelf')
-rw-r--r--lib/libelf/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile
index 76a2fddd5df2..f4389da9d178 100644
--- a/lib/libelf/Makefile
+++ b/lib/libelf/Makefile
@@ -79,6 +79,13 @@ INCS= libelf.h gelf.h
#
SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h
+# Allow bootstrapping elftoolchain on Linux:
+.if defined(BOOTSTRAPPING) && ${.MAKE.OS} == "Linux"
+native-elf-format.h:
+ ${ELFTCDIR}/common/native-elf-format > ${.TARGET} || rm ${.TARGET}
+SRCS+= native-elf-format.h
+.endif
+
GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c
CLEANFILES= ${GENSRCS}
CLEANDIRS= sys