diff options
author | bde <bde@FreeBSD.org> | 2001-12-03 22:31:09 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2001-12-03 22:31:09 +0000 |
commit | f77cb88b791eda7cb24a550dfcbd559061211f49 (patch) | |
tree | 849070bf534e9f304aaa80c8a1c7144731d274ed /share/mk/bsd.prog.mk | |
parent | ce9ba9f911f345e6952f57fc3cee841d92f223eb (diff) | |
download | FreeBSD-src-f77cb88b791eda7cb24a550dfcbd559061211f49.zip FreeBSD-src-f77cb88b791eda7cb24a550dfcbd559061211f49.tar.gz |
Unbreak "make lint" for programs and "make llib-l${LIB}.ln" for
libraries a little by not passing all of ${CFLAGS} to lint. Pass
only options matching -[DIU]*. The important -nostdinc option can't
be passed like I first thought because lint misinterprets as
"-n -o stdinc". The unimportant -B* option can't be passed because
lint doesn't support it. Otherwise, we pass the same options as
to mkdep, exept for a bug in the latter: -U* is not passed. All
this depends on option args not being separated from option flags
by a space.
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r-- | share/mk/bsd.prog.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 4c790c2..670f5a2b 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -178,7 +178,7 @@ distribute: _SUBDIR .if !target(lint) lint: ${SRCS} _SUBDIR .if defined(PROG) - @${LINT} ${LINTFLAGS} ${.ALLSRC} | more 2>&1 + ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} | more 2>&1 .endif .endif |