keeping system base update and problems with CPUTYPE

2009-12-08 Thread ocean
i've read the manual section, and there's really not much informations 
on this.


i've looked into /usr/src/Makefile and Makefile.incl i've seen there are 
options to update /usr/src using svn (wich would be my preferred option) 
or cvs, but i haven't been able to configure it in any way.


i think i could just do:
svn checkout svn://svn.freebsd.org/base/stable/8/ /usr/src

but i wanted to keep it clean and organized using make in /usr/src
can someone point me to some informations about this or help me sorting 
this out?



i think i've also found an unexpected behaviour in make buildworld, 
i've put src.conf and makefile.conf in /etc/


CPUTYPE?=pentium-m
CFLAGS= -O2 -fno-strict-aliasing -pipe

buildkernel and ports build with the cflags and added -march=pentium-m

buildworld builds with the cflags i've specified without adding -march.
that's a strane behaviour since i think buildworld should build with 
CPUTYPE defined in /etc/make.conf, if you don't define another CPUTYPE 
variable.


i've also tried to do:
make CPUTYPE=pentium-m buildworld
and also this way -march isn't added to cflags

i wanted to ask if it's my fault before filling a PR about this.

only way i found to get -march=pentium-m on buildworld is to add it 
myself to CFLAGS in make.conf.


regards
ocean
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: keeping system base update and problems with CPUTYPE

2009-12-08 Thread RW
On Tue, 08 Dec 2009 13:23:51 +0100
ocean ocean_i...@yahoo.it wrote:

 
 i think i've also found an unexpected behaviour in make buildworld, 
 i've put src.conf and makefile.conf in /etc/
 
 CPUTYPE?=pentium-m
 CFLAGS= -O2 -fno-strict-aliasing -pipe

You don't normally set CFLAGS in FreeBSD, it's set automatically
according to CPUTYPE. I suspect that by explicitly defining it you may
be preventing the make files from adding the -march setting in
buildword.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org