|
|
第 1 帖 | ||
|
|
标题: 被遗忘的 LDFLAGS 人人都知道在make.conf里面改CFLAGS可以对编译进行优化。可是长久以来make.conf里面一直缺少另外一个很重要的优化参数,就是LDFLAGS
LDFLAGS是用来制定动态Library调用的参数集,在make.conf里面加入下面这行,可以增加一部分程序的启动速度: 引用:
原文: http://forums.gentoo.org/viewtopic.p...ghlight=ldflag
__________________
There are 10 types of people in this world: People who know binary, and who don't know. http://wangxiaohu.com |
||
|
|
|
||
|
|
第 2 帖 | |
|
|
BTW,最近的Linux新秀 Ubuntu Linux 就是用这种方法优化GNOME的。
|
|
|
|
|
|
|
|
第 3 帖 | |
|
|
真的么?试试!
|
|
|
|
|
|
|
|
第 4 帖 | |
|
|
如何查看LDFLAGS已加入?
|
|
|
|
|
|
|
|
第 5 帖 | |
|
|
__________________
我想品尝你 然后咀嚼你 最后消化你 嘿嘿嘿嘿 哎呀呀 哦 饱了 |
|
|
|
|
|
|
|
第 6 帖 | |
|
|
有人试过-O2以上的参数没?
__________________
[url=http://www.linuxdown.org/ftproot/music]听小鸭唱歌[/url] http://www.cnetbsd.org netbsd中文网 |
|
|
|
|
|
|
|
第 7 帖 | |
|
|
神奇的参数。
可以在这里概述一下原理吗?
__________________
IBOX, a LiveCD distribution based on Gentoo, is fit for newbie. IBOX brings to you: - knoppix-style harddisk installation tool, by which you can install Gentoo in 20 minutes. - hardware auto-configuration. You can run into X desktop directly. - all-round software set, including OpenOffice, azureus. - LiveCD-create-tools. Step-by-step, custom a LiveCD yourself with ease. Any questions and feedbacks is welcome to home_king at 163 dot com |
|
|
|
|
|
|
|
第 8 帖 | |
|
|
测试了一下速度的确变快了。。不错
![]() ![]()
__________________
sunmoon1997@localhost ~ $ emerge --info Portage 2.1_rc1-r2 (default-linux/amd64/2006.0, gcc-4.0.3, glibc-2.4-r2, 2.6.16-gentoo-r6 x86_64) ================================================================= System uname: 2.6.16-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre19 Can you understand linux? Can you foresee the future of linux? |
|
|
|
|
|
|
|
第 9 帖 | |
|
|
这个参数系统做好了以后也可以设置马?
__________________
花因喜洁难寻偶,人为悲秋欲断魂 |
|
|
|
|
|
|
|
第 10 帖 | |
|
|
谁能贴一个使用此参数后的make.conf出来?
|
|
|
|
|
|
|
|
第 11 帖 | ||
|
|
引用:
# echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf 不就行了? |
||
|
|
|
||
|
|
第 12 帖 | |
|
|
看GentooForum上的
PHP 代码:
这些都可以加到make.conf中么?
__________________
AMD Athlon64 3200+ (Venice) ASUS nForce4 Ultra VDATA DDR400 512MB X4 ST SATA2 160GB + ST SATA 160GB (RAID0) Nvidia Geforce 6600 GT ADSL 2Mbps |
|
|
|
|
|
|
|
第 13 帖 | |
|
|
加入以后如何查看?
|
|
|
|
|
|
|
|
第 14 帖 | |
|
|
--relax是只有对alpha平台有用吧,看得晕晕乎乎的
已经-O1 -Wl了为什么还要-Wl? |
|
|
|
|
|
|
|
第 15 帖 | |
|
|
用LDFLAGS="-Wl,-O1 -Wl,-z combreloc,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s"之后就不能编译了
checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc -march=athlon-xp -pipe -fprefetch-loop-arrays -Wl,-O1 -Wl,-z combreloc,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! ERROR: net-www/mozilla-firefox-1.0-r1 failed. !!! Function econf, Line 449, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. |
|
|
|
|
|