[Xcb] [PATCH] v2: Link xcb-util* with -no-undefined
Gaetan Nadon
memsize at videotron.ca
Fri Mar 25 10:11:39 PDT 2011
On Fri, 2011-03-25 at 12:41 +0000, Jon TURNEY wrote:
> I'm not sure what other common linker flags might ever be used, but as
> requested:
If you grep the xorg libraries, there are no other flag. So this is
over-kill.
>
> A series of patches for the split xcb-util repositories adding a
> variable
> XCB_UTIL_COMMON_LDFLAGS to xcb_util_common.m4, and using that in all
> xcb-util
> library Makefiles. Set XCB_UTIL_COMMON_LDFLAGS to '-no-undefined'.
These patches only compile on your workstation. They do not contain the
change in
the m4 submodule to point to the new commit in common-m4.
The current commit number can be seen here:
http://cgit.freedesktop.org/xcb/util/tree/?repo=m4&page=commit&id=177e4afb9b57a7b7589c15d8a9bd85b4a5524128
Don't worry about the "invalid commit reference".
Each of the containing repo must have "m4" to be updated to pint at the
commit provided by the common-m4
patch. It's best to test it in a separate directory starting clean.
There is some benefit in being consistent with other libraries, when we
find a better idiom, we apply it
to all libraries.
>
> -no-undefined assures libtool that the library has no unresolved
> symbols at link time, so that libtool will build a shared library for
> platforms that require all symbols to be resolved when the library is
> linked.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110325/eb85fb59/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110325/eb85fb59/attachment-0001.pgp>
More information about the Xcb
mailing list