<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Makefile oddities in libmaple</title>
		<link>http://forums.leaflabs.com/topic.php?id=1313</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:25:52 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1313" rel="self" type="application/rss+xml" />

		<item>
			<title>jcsalomon on "Makefile oddities in libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1313#post-7989</link>
			<pubDate>Wed, 01 Feb 2012 21:54:52 +0000</pubDate>
			<dc:creator>jcsalomon</dc:creator>
			<guid isPermaLink="false">7989@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The libmaple Makefile as provided on GitHub does not build as-is.  I haven’t been able to trace this all the way though, but it seems that linking is done via the &#60;code&#62;g++&#60;/code&#62; driver rather than with &#60;code&#62;ld&#60;/code&#62; directly.  The &#60;code&#62;LDFLAGS&#60;/code&#62; Makefile variable is where the trouble is; in order to make the build work I needed to change the last bit of the definition:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;LDFLAGS  = -T$(LDDIR)/$(LDSCRIPT) -L$(LDDIR)
            -mcpu=cortex-m3 -mthumb -Xlinker
            --gc-sections --print-gc-sections --march=armv7-m -Wall&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The last bit needs to look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;--gc-sections -Wl,-print-gc-sections -Wall&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;instead.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
