Re: two packages (reminder)

Niclas Rosenvik <[email protected]> Thu, 30 Jan 2014 01:49:17 +0100
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.review
Message-ID <[email protected]>
> > Pthreads are also mentioned. Running ./configure --help gives
> >   --enable-threads={posix|solaris|pth|win32}
> >                           specify multithreading API
> >   --disable-threads       build without multithread safety
> > "build without multithread safety"??? who doesn't want thread
> > safety??
> > I guess --disable-threads means "don't use threads".
> > Since pkgsrc has gnu(ossp) pth including mk/pthread.buildlink3.mk
> > and setting PTHREAD_OPTS+= require should not be a problem on most
> > platforms I guess.
> 
> Then do I need to add CONFIGURE_ARGS+=--enable-threads as appropriate
> for the platform as well?

The configure script found pthread support on netbsd without
--enable-treads=posix so CONFIGURE_ARGS+=--enable-threads won't be
needed. If I understand correctly including mk/pthread.buildlink3.mk
and "PTHREAD_OPTS+= require" will install devel/pth on systems that do
not have their own thread implementation and configure will find this
on these systems. pth is in the list of posix|solaris|pth|win32.

/Niclas


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk