<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>狂人山庄 &#124; Silence,声仔,吴洪声,奶罩 &#187; mac os x</title>
	<atom:link href="http://wuhongsheng.com/tag/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://wuhongsheng.com</link>
	<description>响应我党号召,全面建设和谐博客,坚持和谐写博的路线不动摇</description>
	<lastBuildDate>Wed, 04 May 2011 15:13:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Snow Leopard下跨版本编译程序</title>
		<link>http://wuhongsheng.com/it/2009/10/snow-leopard-cross-platform-compile-program/</link>
		<comments>http://wuhongsheng.com/it/2009/10/snow-leopard-cross-platform-compile-program/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 01:40:21 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[cross platform]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=347</guid>
		<description><![CDATA[手头有个软件需要编译给另外一台macbook pro用，但另外的机器没有make/gcc之类的编译环境，并且是leopard的系统。所以我需要在我现在的snow leopard来进行跨版本编译 其实很简单，只需要在设定几个环境变量，然后再编译就可以了 export MACOSX_DEPLOYMENT_TARGET=10.5 export ARCHFLAGS='-arch i386' export CFLAGS='-arch i386 -O3 -pipe' export CXXFLAGS=$CFLAGS export LDFLAGS='-arch i386 -bind_at_load' No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>手头有个软件需要编译给另外一台macbook pro用，但另外的机器没有make/gcc之类的编译环境，并且是leopard的系统。所以我需要在我现在的snow leopard来进行跨版本编译</p>
<p>其实很简单，只需要在设定几个环境变量，然后再编译就可以了</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">MACOSX_DEPLOYMENT_TARGET</span>=<span style="color: #000000;">10.5</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ARCHFLAGS</span>=<span style="color: #ff0000;">'-arch i386'</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CFLAGS</span>=<span style="color: #ff0000;">'-arch i386 -O3 -pipe'</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CXXFLAGS</span>=<span style="color: #007800;">$CFLAGS</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LDFLAGS</span>=<span style="color: #ff0000;">'-arch i386 -bind_at_load'</span></pre></div></div>



<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/it/2009/10/snow-leopard-cross-platform-compile-program/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.372 seconds -->

