由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 问题:gentoo的gcc编译的CFLAGS
相关主题
Re: how to change all the files .cpp to .Chow to turn off sendmail
Re: [转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!kill init process
how to set up printer???Question on Tcl/Tk !
[转载] My makefile can not work, why?INIT: Cannot create /var/adm/utmp or /var/adm/utmpx (help!)
help needed for xfig installationRe: INIT: Cannot create /var/adm/utmp or /var/adm/utmpx (help!)
[转载] questions on make commandwhy this happens when init system?
还是只认3.6G内存,大虾分析一下把 (转载)anybody debuged MPI programs?
dillo - fast, small browser关于 TX 4.0 与老版本不兼容的地方
相关话题的讨论汇总
话题: cflags话题: gentoo话题: gcc话题: 编译话题: kernel
进入Unix版参与讨论
1 (共1页)
m******g
发帖数: 91
1
看gentoo网上提供的说明,需要对/etc/make.conf进行配置,
让gcc针对特定的CPU进行编译优化。
好的。我的机器是pentium 233MHz MMX,
因此我改动/etc/make.conf为:
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=pentium-mmx -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
可是在执行kernel编译时,出现的却是:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r5/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
-march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
是针对i
c********e
发帖数: 417
2
那个make.conf是不管你编译kernel的.
kernel的CPU type你还是得改 .config

【在 m******g 的大作中提到】
: 看gentoo网上提供的说明,需要对/etc/make.conf进行配置,
: 让gcc针对特定的CPU进行编译优化。
: 好的。我的机器是pentium 233MHz MMX,
: 因此我改动/etc/make.conf为:
: CHOST="i586-pc-linux-gnu"
: CFLAGS="-march=pentium-mmx -O3 -pipe -fomit-frame-pointer"
: CXXFLAGS="${CFLAGS}"
: 可是在执行kernel编译时,出现的却是:
: gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r5/include -Wall
: -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

m******g
发帖数: 91
3
thx. you are absolutely correct. I've made up a working gentoo now.:D
thx

【在 c********e 的大作中提到】
: 那个make.conf是不管你编译kernel的.
: kernel的CPU type你还是得改 .config

1 (共1页)
进入Unix版参与讨论
相关主题
关于 TX 4.0 与老版本不兼容的地方help needed for xfig installation
[转载] Redhat9.0怎么启动不进入graphics[转载] questions on make command
an interview question: what happened ...还是只认3.6G内存,大虾分析一下把 (转载)
升级kernel失败dillo - fast, small browser
Re: how to change all the files .cpp to .Chow to turn off sendmail
Re: [转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!kill init process
how to set up printer???Question on Tcl/Tk !
[转载] My makefile can not work, why?INIT: Cannot create /var/adm/utmp or /var/adm/utmpx (help!)
相关话题的讨论汇总
话题: cflags话题: gentoo话题: gcc话题: 编译话题: kernel