diff options
author | ru <ru@FreeBSD.org> | 2002-03-20 18:25:50 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-03-20 18:25:50 +0000 |
commit | 333c1d4d25cf8c0498e4324502d4ed90dcffd2e3 (patch) | |
tree | 203191190a1d45e1fe5ab202024032a4bae4048d /usr.bin/xlint/Makefile.inc | |
parent | f239d72864df9d8c684c4985d0266ae8e4e0c0b1 (diff) | |
download | FreeBSD-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 'usr.bin/xlint/Makefile.inc')
-rw-r--r-- | usr.bin/xlint/Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/xlint/Makefile.inc b/usr.bin/xlint/Makefile.inc index 91c252b..82d0b34 100644 --- a/usr.bin/xlint/Makefile.inc +++ b/usr.bin/xlint/Makefile.inc @@ -6,7 +6,8 @@ WARNS= 0 .PATH: ${.CURDIR}/../common -CFLAGS+= -I${.CURDIR}/../arch/${MACHINE_ARCH} +TARGET_ARCH?= ${MACHINE_ARCH} +CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH} CFLAGS+= -I${.CURDIR}/../common OBJECT_FMT= ELF |