<?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>Sun, 07 Nov 2010 18:24:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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 [...]]]></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>
<pre lang="make">
_helper_la_LDFLAGS = -module -rpath /freaking/libtool/requires/at/least/a/dummy/path
</pre>
<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>

