Subject: c options in pkgsrc
To: None <tech-pkg@netbsd.org>
From: Mipam <mipam@ibb.net>
List: tech-pkg
Date: 12/19/2002 16:25:56
Hi,

I use COPTS in mk.conf to add some options during compilation.
I like to use -pipe for example.
This option is included fine during the build
of a kernel or userland, but COPTS is not respected when building
packages from pkgsrc.
Not to confuse things i devided the mk.conf like this:

[SNIP]

.ifdef BSD_PKG_MK
CFLAGS+=-pipe
CXXFLAGS+=${CFLAGS}
.endif

COPTS+=-pipe

Meaning: use CFLAGS etc only for building stuff from pkgsrc
and use COPTS for kernel and userland compilations.
But still i wonder why COPTS isnt used for pkgsrc.
Any suggestions?
Bye,

Mipam.