Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2012 12:07:53 +0800
From:      Sunpoet Hsieh <sunpoet@sunpoet.net>
To:        Alexey Kouznetsov <alexey@kouznetsov.com>
Cc:        ports@freebsd.org, Sergey Matveychuk <sem@freebsd.org>
Subject:   Re: port DNS/UNBOUND
Message-ID:  <CAMHz58TymWLoPGD%2B29=z6TxcYe2HYrgyAuSag-5ih2w2pSwKTQ@mail.gmail.com>
In-Reply-To: <CAGd9aGCzwVzzcxtybOXKHQwjdtfX8RvM6167p9v25X3yp_fV3Q@mail.gmail.com>
References:  <CAGd9aGCzwVzzcxtybOXKHQwjdtfX8RvM6167p9v25X3yp_fV3Q@mail.gmail.com>

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

You can use ".if empty(PORT_OPTIONS:Mfoo)" to check if option "foo" is
off. Try this:

.if empty(PORT_OPTIONS:MTHREADS)
CONFIGURE_ARGS+=--without-pthreads
.endif

Regards,
sunpoet

On Thu, Jul 19, 2012 at 10:46 PM, Alexey Kouznetsov
<alexey@kouznetsov.com> wrote:
> Hello!
>
> After port was moved to new NGoptions this is inpossible to compile port
> with threads enabled. make always adds  --without-pthreads undepended on
> setings in make config
>
> At Makefile we have
> .if empty(${PORT_OPTIONS:MTHREADS})
> CONFIGURE_ARGS+=--without-pthreads
> .endif
>
> and resulted configure with THREADS enabled from config.log:
>   $ ./configure --with-ssl=/usr --disable-gost --disable-ecdsa
> --with-libevent=/usr/local --without-pthreads --prefix=/usr/local
>
> I changed this to
> .if !${PORT_OPTIONS:MTHREADS}
> CONFIGURE_ARGS+=--without-pthreads
> .endif
>
> and as result I have not --without-pthreads in configure parameters anymore
> and unbound started as multithread program
>
> Could you, please, change the port ?
>
> Thank you
> /Alexey
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"



-- 
  Sunpoet Po-Chuan Hsieh <sunpoet at sunpoet.net> <sunpoet at FreeBSD.org>
          4096R/CC57E36B 8AD8 68F2 7D2B 0A10 7E9B 8CC0 DC44 247E CC57 E36B
                            http://people.FreeBSD.org/~sunpoet/pgpkeys.txt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58TymWLoPGD%2B29=z6TxcYe2HYrgyAuSag-5ih2w2pSwKTQ>