<?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>Bluehorn's Blog &#187; libtool</title>
	<atom:link href="http://www.landschoff.net/blog/tag/libtool/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.landschoff.net/blog</link>
	<description>Ramblings of Torsten Landschoff</description>
	<lastBuildDate>Thu, 08 Jul 2010 10:43:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>libtool silently skips shared libraries without -rpath</title>
		<link>http://www.landschoff.net/blog/2009/12/libtool-silently-skips-shared-libraries-without-rpath/</link>
		<comments>http://www.landschoff.net/blog/2009/12/libtool-silently-skips-shared-libraries-without-rpath/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 16:04:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Observations]]></category>
		<category><![CDATA[libtool]]></category>

		<guid isPermaLink="false">http://www.landschoff.net/blog/?p=139</guid>
		<description><![CDATA[Ouch! This is the second time I am running into this so I&#8217;ll write it up this time.
I used libtool via automake for building a python module. Quite unhelpfully, libtool happens to build only the static library. It does that even though I passed the -module option, which should make it clear that a static [...]]]></description>
			<content:encoded><![CDATA[<p>Ouch! This is the second time I am running into this so I&#8217;ll write it up this time.</p>
<p>I used libtool via automake for building a python module. Quite unhelpfully, libtool happens to build only the static library. It does that even though I passed the <tt>-module</tt> option, which should make it clear that a static library does not help at all. There is also no mention why it skips the shared library.</p>
<p>After some research, my memory came back: libtool requires to pass the <tt>-rpath</tt> option to actually build shared libraries. I did not want to pass that options, since it is <a href="http://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html#rpath">considered harmful</a> where multiple variants of a library are available. It is even less useful in my specific case, as the module is only used inside the source tree for unit testing.</p>
<p>Solution: I changed the <tt>Makefile.am</tt> to use</p>
<div class="codecolorer-container make mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="make codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">_helper_la_LDFLAGS <span style="color: #004400;">=</span> <span style="color: #004400;">-</span>module <span style="color: #004400;">-</span>rpath <span style="color: #004400;">/</span>freaking<span style="color: #004400;">/</span>libtool<span style="color: #004400;">/</span>requires<span style="color: #004400;">/</span>at<span style="color: #004400;">/</span>least<span style="color: #004400;">/</span>a<span style="color: #004400;">/</span>dummy<span style="color: #004400;">/</span>path</div></td></tr></tbody></table></div>
<p>Interestingly, the same scheme (apart from the wording) is used in libtool&#8217;s own source.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.landschoff.net/blog/2009/12/libtool-silently-skips-shared-libraries-without-rpath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
