summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-03-20 18:25:50 +0000
committerru <ru@FreeBSD.org>2002-03-20 18:25:50 +0000
commit333c1d4d25cf8c0498e4324502d4ed90dcffd2e3 (patch)
tree203191190a1d45e1fe5ab202024032a4bae4048d /Makefile.inc1
parentf239d72864df9d8c684c4985d0266ae8e4e0c0b1 (diff)
downloadFreeBSD-src-333c1d4d25cf8c0498e4324502d4ed90dcffd2e3.zip
FreeBSD-src-333c1d4d25cf8c0498e4324502d4ed90dcffd2e3.tar.gz
Make lint(1) a cross-tool.
(See commit log for usr.bin/xlint/Makefile,v 1.11 for what was wrong with enabling build of lint libraries in rev. 1.12.) This fixes cross-arch compiles (running binaries for a different arch when generating lint.7 and lint libraries) and cross-branch compiles (4.x -> 5.0 buildworld should be working again).
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc14
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index b05eddb..6ba1b12 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -615,9 +615,11 @@ _elf2exe= usr.sbin/elf2exe
_btxld= usr.sbin/btxld
.endif
+_xlint= usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint
+
cross-tools:
.for _tool in ${_btxld} ${_elf2exe} \
- gnu/usr.bin/binutils usr.bin/objformat gnu/usr.bin/cc
+ gnu/usr.bin/binutils usr.bin/objformat gnu/usr.bin/cc ${_xlint}
cd ${.CURDIR}/${_tool}; \
${MAKE} obj; \
${MAKE} depend; \
OpenPOWER on IntegriCloud