From sheldonh@axl.training.iafrica.com  Wed Sep 23 14:14:34 1998
Received: from axl.training.iafrica.com (axl.training.iafrica.com [196.31.1.175])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA16440
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Sep 1998 14:14:19 -0700 (PDT)
          (envelope-from sheldonh@axl.training.iafrica.com)
Received: from sheldonh by axl.training.iafrica.com with local (Exim 2.02 #1)
	id 0zLwEo-00024N-00
	for FreeBSD-gnats-submit@freebsd.org; Wed, 23 Sep 1998 23:14:14 +0200
Message-Id: <E0zLwEo-00024N-00@axl.training.iafrica.com>
Date: Wed, 23 Sep 1998 23:14:14 +0200
From: axl@iafrica.com
Sender: Sheldon Hearn <sheldonh@axl.training.iafrica.com>
Reply-To: axl@iafrica.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ports/security/krb5 ignores CFLAGS
X-Send-Pr-Version: 3.2

>Number:         8037
>Category:       ports
>Synopsis:       ports/security/krb5 ignores CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    markm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 23 14:20:00 PDT 1998
>Closed-Date:    Sun Sep 27 04:35:04 PDT 1998
>Last-Modified:  Sun Sep 27 04:36:18 PDT 1998
>Originator:     Sheldon Hearn
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
UUNET Internet Africa
>Environment:

	Any system where a global CFLAGS is defined, either as an envar
	or in /etc/make.conf .

>Description:

	The krb5 port ignores local CFLAGS, whether set as an envar or
	in /etc/make.conf . The configure script supplied with the
	distfile has an option for specifying local optimization flags,
	but the port's Makefile doesn't tickle this option.

>How-To-Repeat:

	N/A

>Fix:
	
	The following patch teaches ports/security/krb5 to honour local
	CFLAGS optimizations:

Index: security/krb5/Makefile
===================================================================
RCS file: /home/ncvs/ports/security/krb5/Makefile,v
retrieving revision 1.5
diff -u -d -r1.5 Makefile
--- Makefile	1998/09/14 19:23:42	1.5
+++ Makefile	1998/09/23 21:00:17
@@ -39,7 +39,7 @@
 
 USE_GMAKE=		yes
 GNU_CONFIGURE=		yes
-CONFIGURE_ARGS?=	--enable-shared
+CONFIGURE_ARGS?=	--enable-shared --with-ccopts="${CFLAGS}"
 KRB5_KRB4_COMPAT?=	YES
 
 .if !defined(KRB5_KRB4_COMPAT) || ${KRB5_KRB4_COMPAT} == "NO"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: markm 
State-Changed-When: Sun Sep 27 04:35:04 PDT 1998 
State-Changed-Why:  
Patch applied. Thanks! 



Responsible-Changed-From-To: freebsd-ports->markm 
Responsible-Changed-By: markm 
Responsible-Changed-When: Sun Sep 27 04:35:04 PDT 1998 
Responsible-Changed-Why:  
I applied the patch. 
>Unformatted:
