<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Sun, 2010-11-14 at 21:31 -0800, Dan Nicholson wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <TT><FONT COLOR="#1a1a1a">Why not just make libxf86config into a libtool library? Then libtool</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">will take care of all the PIC details, follow the --with-pic</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">configuration, and be static or shared as requested by the user.</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">Here's an untested diff, but I think it's all it would take (gmail has</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">surely broken the whitespace).</FONT></TT><BR>
    <BR>
</BLOCKQUOTE>
If there is a need for a shared library, then that's the way to go. I can understand there was a quick fix<BR>
on one distro which is Linux only. Is this option gcc only? <BR>
With the patch, will the library work correctly on all the supported platforms?<BR>
<BR>
From Automake manual:
<BLOCKQUOTE>
<PRE>
Building shared libraries portably is a relatively complex matter.
For this reason, GNU Libtool (see <A HREF="http://www.gnu.org/software/automake/manual/libtool.html#Top">Introduction</A>) was created to help build
shared libraries in a platform-independent way.
</PRE>
</BLOCKQUOTE>
<BR>
List of non shared libraries:
<BLOCKQUOTE>
<PRE>
xfree86/parser/Makefile.am:lib_LIBRARIES = libxf86config.a
vfb/Makefile.am:noinst_LIBRARIES = libfbcmap.a
dmx/input/Makefile.am:noinst_LIBRARIES = libdmxinput.a
dmx/glxProxy/Makefile.am:noinst_LIBRARIES = libglxproxy.a
dmx/config/Makefile.am:noinst_LIBRARIES = libdmxconfig.a
xnest/Makefile.am:noinst_LIBRARIES = libfbcmap.a
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>