View Single Post
  #7   (View Single Post)  
Old 11th June 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Code:
-Os
-fno-guess-branch-probability
-fomit-frame-pointer
-fno-unit-at-a-time
-mno-align-long-strings
your CFLAGS may be good for Ports but not for kernel, try these for kernel:
-O2 -fno-strict-aliasing -pipe -s

here you can check how to specify diffrent CFLAGS for kernel and Ports:
http://toya.net.pl/~vermaden/text/make.conf

Also, this is the proper schema for upgrading FreeBSD:
Code:
# cd /usr/src
# make buildworld
# make kernel KODIR=/boot/testing
# nextboot -k testing
# shutdown -r now
Code:
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster -iU
// ( if kernel works ok then )
# mv /boot/kernel /boot/OLD
# mv /boot/testing /boot/kernel
// ( else build kernel again )
# shutdown -r now
Code:
// ( optional )
# cd /usr/src
# make delete-old
# make delete-old-libs
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote