Only export symbols starting with razor_ in dynamic library.
Apart from being good practice to avoid clashes with higher-level
libraries and the application, this also fixes an obscure bug: The
gnulib library is used both by librazor (the dynamic library) and
by razor (the executable). In doing so, we want to have two separate
copies of the library despite the code duplication this involves.
Without the explicit limit to export only razor_ symbols, the razor
executable under mingw64 was picking up the getopt_long function
from librazor and the optind variable from libgnu which meant that
it did not see optind changing. Hiding librazor's copy of getopt
causes the linker to find libgnu's copy and everything works.
Note that under mingw librazor-#.dll still contains undocumented
(private) razor_ symbols but these will do no harm as long as nobody
tries to use them.
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
4 <!ENTITY version SYSTEM "version.xml">
6 <book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
8 <title>Razor Library Reference Manual</title>
9 <releaseinfo>Version &version;</releaseinfo>
12 <firstname>Kristian</firstname>
13 <surname>Høgsberg</surname>
16 <email>krh@redhat.com</email>
24 <holder>Razor Authors</holder>
29 <holder>Red Hat, Inc</holder>
34 Permission is granted to copy, distribute and/or modify this
35 document under the terms of the <citetitle>GNU Free
36 Documentation License</citetitle>, Version 1.1 or any later
37 version published by the Free Software Foundation with no
38 Invariant Sections, no Front-Cover Texts, and no Back-Cover
39 Texts. You may obtain a copy of the <citetitle>GNU Free
40 Documentation License</citetitle> from the Free Software
41 Foundation by visiting <ulink type="http"
42 url="http://www.fsf.org">their Web site</ulink> or by writing
46 The Free Software Foundation, Inc.,
47 <street>59 Temple Place</street> - Suite 330,
48 <city>Boston</city>, <state>MA</state> <postcode>02111-1307</postcode>,
49 <country>USA</country>
55 <reference id="ref-design">
56 <title>Design Overview</title>
59 This part presents the design documentation for razor.
62 <xi:include href="package-set.xml" />
63 <xi:include href="solver.xml" />
66 <reference id="ref-core">
67 <title>Core API Reference</title>
70 This part presents the class and function reference for the
74 <xi:include href="xml/set.xml"/>
75 <xi:include href="xml/importer.xml"/>
76 <xi:include href="xml/iterator.xml"/>
77 <xi:include href="xml/transaction.xml"/>
78 <xi:include href="xml/rpm.xml"/>
79 <xi:include href="xml/root.xml"/>
80 <xi:include href="xml/misc.xml"/>