<!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 Fri, 2011-03-25 at 12:41 +0000, Jon TURNEY wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#1a1a1a">I'm not sure what other common linker flags might ever be used, but as</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">requested:</FONT></TT><BR>
</BLOCKQUOTE>
If you grep the xorg libraries, there are no other flag. So this is over-kill.<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
<TT><FONT COLOR="#1a1a1a">A series of patches for the split xcb-util repositories adding a variable</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">XCB_UTIL_COMMON_LDFLAGS to xcb_util_common.m4, and using that in all xcb-util</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">library Makefiles. Set XCB_UTIL_COMMON_LDFLAGS to '-no-undefined'.</FONT></TT><BR>
</BLOCKQUOTE>
These patches only compile on your workstation. They do not contain the change in<BR>
the m4 submodule to point to the new commit in common-m4.<BR>
The current commit number can be seen here:<BR>
<A HREF="http://cgit.freedesktop.org/xcb/util/tree/?repo=m4&page=commit&id=177e4afb9b57a7b7589c15d8a9bd85b4a5524128">http://cgit.freedesktop.org/xcb/util/tree/?repo=m4&page=commit&id=177e4afb9b57a7b7589c15d8a9bd85b4a5524128</A><BR>
Don't worry about the "invalid commit reference".<BR>
<BR>
Each of the containing repo must have "m4" to be updated to pint at the commit provided by the common-m4<BR>
patch. It's best to test it in a separate directory starting clean.<BR>
<BR>
There is some benefit in being consistent with other libraries, when we find a better idiom, we apply it<BR>
to all libraries.<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
<TT><FONT COLOR="#1a1a1a">-no-undefined assures libtool that the library has no unresolved</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">symbols at link time, so that libtool will build a shared library for</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">platforms that require all symbols to be resolved when the library is linked.</FONT></TT><BR>
<BR>
</BLOCKQUOTE>
</BODY>
</HTML>