⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 [原创]gcc-3_4_4安装配置指南 - 打造你自己的gcc ! - linuxsir_org.htm

📁 GCC-3_4_4安装配置指南。详细的说明文档。重要的是这是中文的。
💻 HTM
📖 第 1 页 / 共 5 页
字号:
			<td><input type="text" class="bginput" style="font-size: 12px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="用户名" onfocus="if (this.value == '用户名') this.value = '';" /></td>
			<td class="smallfont" nowrap="nowrap"><label for="navbar_password">密码</label></td>
			<td><input type="password" class="bginput" style="font-size: 12px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
			<td><input type="submit" class="button" value="登录论坛" tabindex="104" title="在登录框中输入您的用户名和密码登录,或者点击“注册”按钮注册一个新账号。" accesskey="s" /></td>
			<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />记住信息</label></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="47951266dc771287d7b641586d8ebbc1" />
		<input type="hidden" name="do" value="login" />
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
		</form>
		<!-- / login form -->

		</td>

	
</tr>
</table>
<!-- /logo -->


<!-- nav buttons bar -->
<div align="center">
	<table class="tborder" cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" align="right">
			|
			<a href="http://www.linuxsir.org/">网站首页</a> |
			
			
					<a href="register.php?s=47951266dc771287d7b641586d8ebbc1" rel="nofollow">注册账号</a> |
			
			<!-- vB 中文修改开始: 银行 -->
			
			<!-- vB 中文修改结束 -->
			<a href="faq.php?s=47951266dc771287d7b641586d8ebbc1" accesskey="5">论坛帮助</a> |
			
		</td>
	</tr>

	<!-- vB 中文修改开始: 滚动公告 -->
	
	<!-- vB 中文修改结束 -->
	
	</table>
</div>
<!-- / nav buttons bar -->

<br />

<!-- main -->

	<!-- guest welcome message -->
	<table class="tborder" cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
	<tbody>
		<tr>
			<td class="vbmenu_control" colspan="6">欢迎来到<b>LinuxSir.Org</b>!</td>
		</tr>
		<tr>
			<td class="alt2" colspan="6">
				您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。
			</td>
		</tr>
	</tbody>
	</table>
	<br />
	<!-- / guest welcome message -->


<!-- breadcrumb -->
<table class="tborder" cellpadding="0" cellspacing="1" border="0" width="100%" align="center">
<tr>
	<td class="alt2">
		
			<table cellpadding="0" cellspacing="0" border="0">
    			<tr>
    				<td class="navbar">
								<a href="#" onclick="history.back(1); return false;"><img class="inlineimg" src="images/misc/navbits_start.gif" alt="返回" border="0" /></a>
    				    &nbsp;
    				    <span class="navbar"><a href="index.php?s=47951266dc771287d7b641586d8ebbc1" accesskey="1">LinuxSir.Org</a></span> 
	<span class="navbar">&gt; <a href="forumdisplay.php?s=47951266dc771287d7b641586d8ebbc1&amp;f=39">Linux 发行版讨论区 —— LinuxSir.Org</a></span>


	<span class="navbar">&gt; <a href="forumdisplay.php?s=47951266dc771287d7b641586d8ebbc1&amp;f=58">Linux 发行版 LFS 讨论区</a></span>


    				    <span class="navbar">&gt; 
	[原创]<a name=baidusnap1></a><B style='color:black;background-color:#A0FFFF'>GCC</B>-3.4.4安装<a name=baidusnap0></a><B style='color:black;background-color:#ffff66'>配置</B>指南 - 打造你自己的<B style='color:black;background-color:#A0FFFF'>Gcc</B> !

</span>
						</td>
    			</tr>
			</table>
		
	</td>
</tr>
</table>
<!-- / breadcrumb -->

<br />



<!-- PAGENAV POPUP -->

	<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead" nowrap="nowrap">转到页面...</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
			<form action="index.php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
				<input type="text" class="bginput" id="pagenav_itxt" style="font-size:12px" size="4" />
				<input type="button" class="button" id="pagenav_ibtn" value="执行" />
			</form>
			</td>
		</tr>
		</table>
	</div>

<!-- / PAGENAV POPUP -->
</if>





<a name="poststop" id="poststop"></a>

<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
	
		<td class="smallfont">
<!-- PHPForce - Joey修改新贴按钮  -->
	<a href="newthread.php?s=47951266dc771287d7b641586d8ebbc1&amp;do=newthread&amp;f=58" rel="nofollow"><img src="images/buttons/newthread.gif" alt="发表新主题" border="0" /></a>
<!-- /PHPForce - Joey修改新贴按钮 -->
<a href="newreply.php?s=47951266dc771287d7b641586d8ebbc1&amp;do=newreply&amp;noquote=1&amp;p=1283488" rel="nofollow"><img src="images/buttons/reply.gif" alt="回复" border="0" /></a></td>
	
	
</tr>
</table>
<!-- / controls above postbits -->

<!-- toolbar -->
<table class="tborder" cellpadding="4" cellspacing="1" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
	<td class="tcat" width="100%">
		<div class="smallfont">
<!-- PHPForce - Joey修改精华/置顶/总顶/区顶 -->




 				
 <img class="inlineimg" src="images/misc/goodnees.gif" alt="精华主题" />
 
<!-- /PHPForce - Joey修改精华 -->

		
		&nbsp;
		</div>
	</td>
	<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
		<a href="#goto_threadtools">主题工具</a>
		
	</td>
	
	
	
	
	
	
</tr>
</table>
<!-- / toolbar -->



<!-- end content table -->

		</div>	
	</div>
</div>

<!-- / close content container -->
<!-- / end content table -->





<div id="posts"><!-- post #1283488 -->

	<!-- open content container -->

<div align="center">
	<div class="page" style="width:100%; text-align:left">
		<div style="padding:0px 0px 0px 0px">

	<div id="edit1283488" style="padding:0px 0px 4px 0px">
	<!-- this is not the last post shown on the page -->	


<!-- post #1283488 -->

	<!-- open content container -->

<div align="center">
	<div class="page" style="width:100%; text-align:left">
		<div style="padding:0px 0px 0px 0px">

	<div id="edit1283488" style="padding:0px 0px 4px 0px">
	<!-- this is not the last post shown on the page -->	


<table id="post1283488" class="tborder" cellpadding="4" cellspacing="0" border="0" width="100%" align="center" style="table-layout:fixed;word-break:break-all">
<tr>
	
		<td class="thead" style="font-weight:normal" width="180" >		
			<!-- status icon and date -->
			<a name="post1283488"><img class="inlineimg" src="images/statusicon/post_old.gif" alt="旧" border="0" /></a> 
			05-10-07, 13:17
			
			<!-- / status icon and date -->				
		</td>
		<td class="thead" colspan="2" style="font-weight:normal" align="right">
			<a href="showpost.php?s=47951266dc771287d7b641586d8ebbc1&amp;p=1283488&amp;postcount=1" target="new" rel="nofollow" id="postcount1283488" name="1"><strong>第 1 帖</strong></a>
			
		</td>
	
</tr>
<tr valign="top">
	<td  class="alt2">
			
			<div id="postmenu_1283488">
				
				<a class="bigusername" href="member.php?s=47951266dc771287d7b641586d8ebbc1&amp;u=81489"><strong>csfrank</strong></a>
				<!-- vB 中文修改开始: 性别 -->
				
				<img class="inlineimg" src="images/misc/male.gif" alt="帅哥" border="0" />
				
				
				
				<!-- vB 中文修改结束 -->
				
				
				<div class="smallfont"><img src="images/ranks/level2.gif" alt="" border="" /></div>
			</div>
			
			&nbsp;<br />
			
				<div class="smallfont">
					<a href="member.php?s=47951266dc771287d7b641586d8ebbc1&amp;u=81489"><img src="upload/avatars/avatar81489_3.gif" alt="csfrank 的头像" border="0" /></a>
				</div>
			

			&nbsp;<br />&nbsp;<br />
			<div class="smallfont" align="left">
			<fieldset style="border:#C6C6C6 1px solid;">
				<legend class="smallfont" style="color:#000000">注册会员</legend>
				&nbsp;<br />
				<div class="smallfont">&nbsp;&nbsp;注册日期: Jun 2005</div>
				<div class="smallfont">&nbsp;&nbsp;我的住址: 上海</div>
				
				<div class="smallfont">
					&nbsp;&nbsp;帖子: 501
				</div>
				<!-- vB 中文修改开始: 精华 -->
						
						<div class="smallfont">&nbsp;&nbsp;<a href="search.php?s=47951266dc771287d7b641586d8ebbc1&amp;do=finduser&amp;goodnees=1&amp;u=81489">精华</a>: 20</div>
				
				<!-- vB 中文修改结束 -->
				<!-- vB 中文修改开始: 银行 -->
				
				<!-- vB 中文修改结束 -->
				<!-- vB 中文修改开始: 显示声望 -->
				
				<!-- vB 中文修改结束 -->
				&nbsp;<br />
			</fieldset>
			</div>

	</td>
	
	<td class="alt1" colspan="2" id="td_post_1283488">
	
		
		
			<!-- icon and title -->
			<div class="smallfont">
				
<br />
				<strong>标题: [原创]<B style='color:black;background-color:#A0FFFF'>GCC</B>-3.4.4安装<B style='color:black;background-color:#ffff66'>配置</B>指南 - 打造你自己的<B style='color:black;background-color:#A0FFFF'>Gcc</B> !</strong>
				<!-- vB 中文修改开始: 显示声望 -->
				
				<!-- vB 中文修改结束 -->
			</div>
			<!-- / icon and title -->
			<hr size="1" style="color:#c6dbff" />
		
<br />
		<!-- message -->
		<div id="post_message_1283488" style="overflow-x: hidden;"><font color="Red">由于论坛排版效果不理想,而且我也只在我的个人空间对文章进行后继更新,所以建议直接到我的空间查看:</font><br /><a href="http://lamp.linux.gov.cn/Linux/Glibc-GCC-Binutils-Install.html" target="_blank">《Glibc Binutils <B style='color:black;background-color:#A0FFFF'>GCC</B> <B style='color:black;background-color:#ffff66'>配置</B>选项简介》</a><br /><a href="http://lamp.linux.gov.cn/Linux/Glibc-GCC-Binutils-Install.html" target="_blank">http://lamp.linux.gov.cn/Linux/Glibc...s-Install.html</a><br />-------------------------------------------------------------------------------<br /><b><font size="5">版权声明</font></b><br />本文作者是一位自由软件爱好者,所以本文虽然不是软件,但是本着 GPL 的精神发布。任何人都可以自由使用、转载、复制和再分发,但必须保留作者署名,亦不得对声明中的任何条款作任何形式的修改,也不得附加任何其它条件。您可以自由链接、下载、传播此文档,但前提是必须保证全文完整转载,包括完整的版权信息和作译者声明。<br /><br /><b><font size="5">其他作品</font></b><br />本文作者十分愿意与他人共享劳动成果,如果你对我的其他翻译作品或者技术文章有兴趣,可以在如下位置查看现有作品的列表:<br /><a href="http://lamp.linux.gov.cn/jinbuguo_florilegium.html" target="_blank">金步国作品列表</a><br /><br /><b><font size="5">BUG报告,切磋与探讨</font></b><br />由于作者水平有限,因此不能保证作品内容准确无误,请在阅读中自行鉴别。如果你发现了作品中的错误,请您来信指出,哪怕是错别字也好,任何提高作品质量的建议我都将虚心接纳。如果你愿意就作品中的相关内容与我进行进一步切磋与探讨,也欢迎你与我联系。联系方式:Email: <a href="mailto:csfrank@citiz.net">csfrank@citiz.net</a> ; QQ: 70171448 ; MSN: <a href="mailto:csfrank122@hotmail.com">csfrank122@hotmail.com</a><br /><br />==============================================<br /><br /><br />哈哈名字噱头了一些,其实主要就是详细的向你讲解一下<B style='color:black;background-color:#A0FFFF'>GCC</B>安装时<B style='color:black;background-color:#ffff66'>配置</B>选项[以<B style='color:black;background-color:#A0FFFF'>gcc</B>-3.4.4为例]<br />先说说安装过程,其实是废话,LFS-Book上都讲过好几遍了,不过为了完整,还是简单的说一下吧。<br />===========================================<br />安装过程<br />------------------<br />前提1(第一段废话):<br />确保目前的C编译程序可用,路径中包含cc或<B style='color:black;background-color:#A0FFFF'>gcc</B>,而且CC环境变量也要设置为编译程序的名字。<br />检查方法:直接在命令行输入&quot;cc&quot;或&quot;<B style='color:black;background-color:#A0FFFF'>gcc</B>&quot;就可以了。<br /><br />前提2(第二段废话):<br />确保已经安装了GNU make。其他版本的make也许可以工作,但是更有可能会带来意想不到的问题。<br />检查方法:输入命令&quot;make -v&quot;查看版本信息。<br /><br />前提3(第三段废话):<br />创建一个与源代码目录无关的另一个编译目录,用来包含所有make程序的描述文件以及产生的目标文件。<br />强烈建议<font color="Red">不要</font>在<B style='color:black;background-color:#A0FFFF'>gcc</B>的源代码目录中编译!!<br /><br />(第四段废话)<br />下载源代码、解包、但是<font color="Red">不要</font>进入解包后的目录[用LFS的没人不知道,略过不表]<br /><br />进入上述所说的不同于存放源代码目录的编译目录,<br />然后使用<font color="Red">绝对路径</font>运行位于源代码目录中的configure脚本进行编译前的<B style='color:black;background-color:#ffff66'>配置</B>,这是本文的重头戏,详细的选项放在后面讲<img src="images/smilies/Jump2.gif" border="0" alt="" title="心情好" class="inlineimg" /><br />该脚本最有趣的是它在绝大多数情况下都能够正确猜测到当前系统的软硬件环境,很少出错。<br />这个能力是通过config.guess脚本来实现的。你可以通过命令行直接执行这个命令,以查看它的猜测结果。<br /><br />运行configure完毕<br />然后就是&quot;make &amp;&amp; make install&quot;[如要运行测试程序,请参考LFS-Book,这里略过不表]<br /><br />[唐僧一句]<br />接下来检查一下PATH环境变量是否正确包含了<B style='color:black;background-color:#A0FFFF'>gcc</B>,否则如果你觉得需要的话,请添上它。<br /><br />==================================================<br />下面讲讲configure脚本的选项<br />[只选一些有用的讲讲,实在无聊的选项就略过不讲了]<br />-----------------------------<br />先讲讲基础知识<br /><br />安装选项是通过configure脚本的命令行选项指定的[废话],该脚本产生的文件可以控制编译和安装的方方面面[还是废话]。<br />每个选项都有它自己的默认值[TMD,又是废话],但是你可以通过选项修改这些默认值,使它符合你的需要[再说废话打你出去! 好好好...我进入正题...]。<br /><br />enable和disable<br />选项的名字能够以--enable打头的也同样能够以--disable打头,二者之中必有一个是默认的(依赖平台的不同而不同),<br />下面仅列出以--enable打头的,--disable打头的就略过不提了(他们还是存在的)。<br /><br />with和without<br />选项的名字能够以--with打头的也同样能够以--without打头,二者之中必有一个是默认的(依赖平台的不同而不同),<br />下面仅列出以--with打头的,--without打头的就略过不提了(他们还是存在的)。<br /><br />

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -