NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: New to NetBSD - Compiling KERNEL and Packages Question.



On Sun, May 30, 2010 at 10:47:32AM -0300, Net Warrior wrote:
> So, does it mean that for *EVERY* packages that I want to tweak, I have to
> modify direclty the Makefile or is there a global options file for every
> package ?

There is a global /etc/mk.conf, although you have to create it. For instance:

$ cat /etc/mk.conf

...

PKG_OPTIONS.fetchmail= -gssapi -kerberos -kerberos4 ssl -socks4 -socks5

$ cd /usr/pkgsrc/mail/fetchmail
$ make show-options

Any of the following general options may be selected:
        gssapi
        kerberos         Enable Kerberos support.
        kerberos4        Enable Kerberos4 support.
        ssl              Enable SSL support.
At most one of the following socks options may be selected:
        socks4   Enable Socks4 support.
        socks5   Enable Socks5 support.

These options are enabled by default:
        ssl

These options are currently enabled:
        ssl

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or PKG_OPTIONS.fetchmail.

> athlon, I can do that under FreeBSD there is a file calle /etc/make.conf
> where I can set up global parameters which are taken when compiling the
> kernel o packages.

Perhaps something like the following for packages:

        .if defined(BSD_PKG_MK)
        CFLAGS+=-march=i686 -pipe -fstack-protector
        CXXFLAGS+=${CFLAGS}
        .endif

I won't say anything about enabling such flags for the base system.

- Jukka.


Home | Main Index | Thread Index | Old Index