NetBSD Problem Report #17052
Received: (qmail 9802 invoked from network); 26 May 2002 20:38:14 -0000
Message-Id: <20020526203745.4CC1A4414@mipam.ibb.net>
Date: Sun, 26 May 2002 22:37:45 +0200 (CEST)
From: mipam@ibb.net
Reply-To: mipam@ibb.net
To: gnats-bugs@gnats.netbsd.org
Subject: When gcc is used when a package build, the /etc/mk.conf
X-Send-Pr-Version: 3.95
>Number: 17052
>Category: pkg
>Synopsis: When gcc is used when a package build, the /etc/mk.conf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun May 26 20:39:00 +0000 2002
>Closed-Date: Mon Jun 17 19:45:52 +0000 2002
>Last-Modified: Mon Jun 17 19:45:52 +0000 2002
>Originator: Mipam
>Release: 1.4.3
>Organization:
Mipam & Co :-)
>Environment:
System: NetBSD 1.4.3A NetBSD 1.4.3A (Mipam) #0: Fri Mar 15 00:56:57 CET 2002 root@:/usr/src/sys/arch/i386/compile/Mipam i386
>Description:
Suppose you got CFLAGS=-pipe in your /etc/mk.conf
normally this option is always taken when a package builds.
However, when a package uses gcc instead of the default cc
then the mk.conf doesnt seem to be consulted for compilation options.
For example the postfix package wants to use gcc, and doesnt
use the CFLAGS options which i specified in /etc/mk.conf
>How-To-Repeat:
echo CFLAGS=-pipe >> /etc/mk.conf
and build the postfix package for example.
I encountered this at more packages which i cant recall all right now.
>Fix:
explictly put it in the gcc options of the makefile or even in the
files to compile.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Mon Jun 17 12:42:36 PDT 2002
State-Changed-Why:
There is no code in "pkgsrc" which uses "gcc" instead of "cc" and ignores
"CFLAGS" in that case. It's simply a bug in the "postfix" package which
I fixed a minute ago.
>Unformatted:
options arent taken.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.