BDECFLAGS being added to CFLAGS and CWARNFLAGS ( was Re: [solved] buildworld error)

From: Scot W. Hetzel <hetzels_at_westbend.net>
Date: Wed, 11 Jun 2003 14:29:09 -0500
From: "Munehiro Matsuda" <haro_at_kgt.co.jp>
> I was having the same compile error, until I commeted out the
> BDECFLAGS definition from /etc/make.conf.
>
> Looking into the problematic Makefiles, I've found that following
> Makefiles do references BDECFLAGS, which matches errors I was getting:
>
>   usr.sbin/config/Makefile : CFLAGS+= ${BDECFLAGS}
>   usr.sbin/lpr/Makefile.inc: CWARNFLAGS= ${BDECFLAGS}
>   usr.sbin/kgzip/Makefile  : CFLAGS+= ${BDECFLAGS}
>
> I think these references must be removed.
>
I did a find for BDECFLAGS and it found 5 Makefiles that are adding these
flags to either CFLAGS or CWARNFLAGS.

# cd /usr/src
# find . -type f -exec grep -H "BDECFLAGS" {} +
./sbin/ffsinfo/Makefile:#CFLAGS+=${BDECFLAGS}
./sbin/growfs/Makefile:#CFLAGS+=${BDECFLAGS}
:
./usr.sbin/config/Makefile:CFLAGS+= ${BDECFLAGS}
./usr.sbin/lpr/Makefile.inc:CWARNFLAGS= ${BDECFLAGS}
./usr.sbin/kgzip/Makefile:CFLAGS+= ${BDECFLAGS}

A couple of possible  fixes are:
    1. removal of BDECFLAGS from the above files
    2. Add a .ifdef USE_BDECFLAGS .. .endif, that conditionalizes the use of
BDECFLAGS in the above files.

Scot
Received on Wed Jun 11 2003 - 10:29:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC