<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.finkproject.org/index.php?action=history&amp;feed=atom&amp;title=Fink%3APolicy%3AGCC</id>
	<title>Fink:Policy:GCC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.finkproject.org/index.php?action=history&amp;feed=atom&amp;title=Fink%3APolicy%3AGCC"/>
	<link rel="alternate" type="text/html" href="https://wiki.finkproject.org/index.php?title=Fink:Policy:GCC&amp;action=history"/>
	<updated>2026-04-30T01:40:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://wiki.finkproject.org/index.php?title=Fink:Policy:GCC&amp;diff=46&amp;oldid=prev</id>
		<title>RangerRick at 01:31, 6 April 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.finkproject.org/index.php?title=Fink:Policy:GCC&amp;diff=46&amp;oldid=prev"/>
		<updated>2006-04-06T01:31:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Fink_Header}}&lt;br /&gt;
&lt;br /&gt;
== The GCC field ==&lt;br /&gt;
&lt;br /&gt;
A package needs a GCC field if anything in the package is compiled with c++ or g++.&lt;br /&gt;
&lt;br /&gt;
This is a practical guide. For policy information see [http://fink.sourceforge.net/doc/packaging/compilers.php the packaging manual] and [http://www.mail-archive.com/fink-devel@lists.sourceforge.net/msg11877.html email to fink-devel] .&lt;br /&gt;
&lt;br /&gt;
=== How to tell if a binary has been compiled with g++ ===&lt;br /&gt;
&lt;br /&gt;
A good way to tell if a binary in your package was compiled with g++ is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nm -g $binary &amp;gt; symbols&lt;br /&gt;
c++filt3 &amp;lt; symbols &amp;gt; symbols.filt&lt;br /&gt;
diff symbols symbols.filt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In most cases, if there is a difference it was compiled with g++ (some exceptions exist involving weirdly named C functions).&lt;br /&gt;
&lt;br /&gt;
=== The script ===&lt;br /&gt;
&lt;br /&gt;
The script [http://vasi.webhop.org/trac/browser/fink/trunk/scripts/gcc-field gcc-field] can check one or more packages to see if they need a GCC field.&lt;br /&gt;
&lt;br /&gt;
To check one package, run it like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gcc-field $package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it prints anything, the package doesn't have the right field (or is an exceptional case). If it doesn't print anything, you're ok!&lt;br /&gt;
&lt;br /&gt;
You can also check all your packages:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gcc-field --maintainer=Vasilevsky&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or check a set of files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find ./root-foo | gcc-field -&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please run &amp;lt;code&amp;gt;gcc-field --help&amp;lt;/code&amp;gt; for details.&lt;br /&gt;
&lt;br /&gt;
{{Fink_Header}}&lt;br /&gt;
&lt;br /&gt;
[[Category: Fink|Policy:GCC]]&lt;br /&gt;
[[Category: GCC|Fink Policy]]&lt;br /&gt;
[[Category: Fink_Documentation|Policy:GCC]]&lt;br /&gt;
[[Category: Fink_Policy|GCC]]&lt;/div&gt;</summary>
		<author><name>RangerRick</name></author>
	</entry>
</feed>