Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2002 10:43:14 -0600
From:      Ian <freebsd@damnhippie.dyndns.org>
To:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: overriding NETINET6 builds for sendmail
Message-ID:  <B8FD6042.CBD1%freebsd@damnhippie.dyndns.org>
In-Reply-To: <5.1.0.14.0.20020507095214.04a593b0@marble.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

> 
> Is there a way to modify the sendmail build process via /etc/make.conf so
> that -DNETINET6  is always removed ?
> 
> i.e.
> CFLAGS+= ${DBMDEF} ${NIS} -DMILTER -DNETINET6 -DTCPWRAPPERS ${MAPS}
> is
> CFLAGS+= ${DBMDEF} ${NIS} -DMILTER -DTCPWRAPPERS ${MAPS}
> 
> Other than getting all the broken resolver sites in the world to fix the
> problem, this seems to be my only effective recourse.
> 
> I can manually remove it from the 3 Makefiles, but was hoping there was an
> easier way to manage this via /etc/make.conf ?
> 

Add the following to your /etc/make.conf

  SENDMAIL_CFLAGS= -UNETINET6

According to the GCC manual, -U is processed after all -D on the command
line, so even if it appears earlier than the -DNETINET6 on the command line
it should have the effect of undefining the macro.

Of course, that's a literal answer to the question you asked, and doesn't
imply that you should discount anything Gregory is saying, since when it
comes to sendmail, he's da man.

-- Ian


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8FD6042.CBD1%freebsd>