aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/xinstall/Makefile
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2018-01-16 21:43:46 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2018-01-16 21:43:46 +0000
commit5f40118235b74deaed9b9d9054756b9bf5b52128 (patch)
treeec6168d8d6d8554bfcf2eeeb21ff2e8b08c30344 /usr.bin/xinstall/Makefile
parentebe45c64a040a2a5d21c3c78117cb35398c7029d (diff)
Allow xinstall and makefs to be crossbuilt on Linux and Mac
I need these tools in order to install the crossbuilt FreeBSD and create a disk image. Linux does not have a st_flags in struct stat so unfortunately I need a bunch of ugly ifdefs. The resulting binaries allow me to sucessfully install a MIPS64 world and create a disk-image that boots. Reviewed By: brooks, bdrewery, emaste Approved By: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D13307
Notes
Notes: svn path=/head/; revision=328064
Diffstat (limited to 'usr.bin/xinstall/Makefile')
-rw-r--r--usr.bin/xinstall/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/xinstall/Makefile b/usr.bin/xinstall/Makefile
index 4bc0d006cb98..1d9cb63510f1 100644
--- a/usr.bin/xinstall/Makefile
+++ b/usr.bin/xinstall/Makefile
@@ -11,6 +11,7 @@ MAN= install.1
.PATH: ${SRCTOP}/contrib/mtree
CFLAGS+= -I${SRCTOP}/contrib/mtree
CFLAGS+= -I${SRCTOP}/lib/libnetbsd
+CFLAGS+= -DHAVE_STRUCT_STAT_ST_FLAGS=1
LIBADD= md