Re: args to `make` within the ports tree

2005-11-24 Thread RW
On Wednesday 23 November 2005 20:57, Russell Meek wrote:
> Roland Smith wrote:
>
> >Try /usr/ports/KNOBS for the most common ones, and the Makefile of each
> >port for specific ones.
> >
> >Roland
>
> Many ports fail if you try to use extravagant make flags like what you
> would use with Gentoo.

I can't say I've ever seen anything like that myself, but I tend to set most 
of  them in make.conf like this:

.if ${.CURDIR:M*/www/linuxpluginwrapper}
WITH_PLUGINS=yes
.endif

Turning things on globally seems a bit dangerous to me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: args to `make` within the ports tree

2005-11-23 Thread Russell Meek

Roland Smith wrote:


On Wed, Nov 23, 2005 at 10:50:19AM -0500, Mike Hernandez wrote:
 


On  Wed, Nov 23, 2005 at 06:35:13PM +0300, Odhiambo Washington wrote:
   


There appears to be so many arguments to `make` when compiling
applications fro the ports tree.
What beats me is where they are documented ;)
 


/etc/make.conf?
   



Try /usr/ports/KNOBS for the most common ones, and the Makefile of each
port for specific ones.

Roland
 




Many ports fail if you try to use extravagant make flags like what you 
would use with Gentoo.


The ones that I use for the most optimal performance are:

*CPUTYPE?=* (Enter your CPUTYPE here, ex. prescott, p4, etc.)
*CFLAGS= -O -PIPE*
*COPTFLAGS= -O -PIPE*

Place a space between the *=* and your options.

These are systemwide commands that all ports will use during the build 
process.


*CPUTYPE?=*

An command for applications to be built with code optimizations for your 
CPU type, refer to the FreeBSD handbook for the different types available. 
The most common entries are *p4* if you have a Generic Pentium 4 
(Northwood, etc) or *prescott* if you are using a P4 Prescott model 
processor.


There are many for AMD also, these are listed in the handbook.

*CFLAGS= -O -PIPE*

Command optimizations for the GNU C compiler, -O and -PIPE I believe are 
standard for FreeBSD 6 Release, however I still include them in my 
Make.conf.  -O2 / -O3 are additional options you can use instead of -O, 
however it is not recommended.  I have used -O2 without any issues when 
building from ports, however I have noticed no difference between -O and 
-O2.


*-O* sets the optimization level, in this case 1.

*- PIPE* causes code to be passed between processes using pipes during 
compilation rather than using temporary files, which has obvious I/O 
advantages.


*COPTFLAGS= -O -PIPE*

Optimizational flags used when compiling your kernel, again I stick to 
what works -O and -PIPE.  I have noticed no breakage when using -O2, but 
then again I have noticed no performance increase on my servers either.


If you are just looking for some quick tweaks, these should set you on 
the right track.


Thanks,

Russell
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: args to `make` within the ports tree

2005-11-23 Thread Odhiambo Washington
* On 23/11/05 17:47 +0100, Roland Smith wrote:
> On Wed, Nov 23, 2005 at 10:50:19AM -0500, Mike Hernandez wrote:
> > On  Wed, Nov 23, 2005 at 06:35:13PM +0300, Odhiambo Washington wrote:
> > > 
> > > There appears to be so many arguments to `make` when compiling
> > > applications fro the ports tree.
> > > What beats me is where they are documented ;)
> > 
> > /etc/make.conf?
> 
> Try /usr/ports/KNOBS for the most common ones, and the Makefile of each
> port for specific ones.

Bull!

Thanks, Roland. This is what I've missed all these days.
And thanks also to the OPs for  offside answers ;)


-Wash

http://www.netmeister.org/news/learn2quote.html

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+
A great many people think they are thinking when they are merely
rearranging their prejudices.
-- William James
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: args to `make` within the ports tree

2005-11-23 Thread Roland Smith
On Wed, Nov 23, 2005 at 10:50:19AM -0500, Mike Hernandez wrote:
> On  Wed, Nov 23, 2005 at 06:35:13PM +0300, Odhiambo Washington wrote:
> > 
> > There appears to be so many arguments to `make` when compiling
> > applications fro the ports tree.
> > What beats me is where they are documented ;)
> 
> /etc/make.conf?

Try /usr/ports/KNOBS for the most common ones, and the Makefile of each
port for specific ones.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpKMad20E9Qn.pgp
Description: PGP signature


Re: args to `make` within the ports tree

2005-11-23 Thread Mike Hernandez
On  Wed, Nov 23, 2005 at 06:35:13PM +0300, Odhiambo Washington wrote:
> 
> There appears to be so many arguments to `make` when compiling
> applications fro the ports tree.
> What beats me is where they are documented ;)
> 
> 
> -Wash
> 

/etc/make.conf?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: args to `make` within the ports tree

2005-11-23 Thread Fabian Keil
Odhiambo Washington <[EMAIL PROTECTED]> wrote:

> There appears to be so many arguments to `make` when compiling
> applications fro the ports tree.
> What beats me is where they are documented ;)

man ports shows the global ones.

For the rest you have to look in the Makefile of
the port you're interested in. 

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


args to `make` within the ports tree

2005-11-23 Thread Odhiambo Washington

There appears to be so many arguments to `make` when compiling
applications fro the ports tree.
What beats me is where they are documented ;)


-Wash

http://www.netmeister.org/news/learn2quote.html

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+
Turnaucka's Law:
The attention span of a computer is only as long as its
electrical cord.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"