pkgsrc-WIP-discuss archive

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

Re: Compiler optimization in packages and options.mk comments



On Fri, 23 May 2008 12:07:18 +0200
Tobias Nygren <tnn%NetBSD.org@localhost> wrote:

> On Fri, 23 May 2008 11:39:03 +0200
> Christian Sturm <athaba%inode.at@localhost> wrote:
> 
> > Hi,
> > 
> > it's about the gmp-ecm package. It really depends  a lot on 
> > optimization. The can be (de)activated via ./configure.
> > 
> > Currently there are two optimizations.
> > One is for Opteron CPUs and the other for SSE2.
> > 
> > ./configure --help says that it will use SSE2 on Pentium4 per 
> > default. Does this work with pkgsrc? But what happens on bulk 
> > builds?
> > 
> > Is there something like a variable to enable this options on 
> > SSE2-supporting systems or Opterons?
> > 
> > I haven't been able to to find out how to add comments to the 
> > options. Something like:
> > curl- Enable curl support.
> > idea- Enable support for the IDEA cryptographic algorithm 
> > (possible license+patent problems).
> > ldap- Enable LDAP support.
> > 
> > in security/gnupg.
> > 
> > I couldn't find the answers in the pkgsrc documentation or by 
> > looking for them in other packages. Are these things documented 
> > somewhere?
> > 
> > Christian
> 
> We normally do this by adding an "options.mk" file to the package,
> and include that from the Makefile. You should find plenty of examples.
> Unless the package can determine at runtime what architecture
> extensions to use, leave the options disabled and let the user decide.
> 
> -Tobias

Oh, and the option descriptions are currently global, located in
mk/defaults/options.description.
I wouldn't mind adding a description file to wip/mk, though.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss




Home | Main Index | Thread Index | Old Index