[PATCH 1/1] Fixing compilation of xorg-server/xnest with LDFLAGS="-Wl, --as-needed"

Hanno Böck ml at hboeck.de
Thu Jun 21 04:50:54 PDT 2007


As my first mail got ignored, trying again with correct subject and inline patch...

Compilation of latest xorg-server in git fails with some linkling errors if 
you use --as-needed.

It can be fixed by changing the order of the Libs in XNEST_LIBS. See attached 
patch.

Please apply.



--- xorg-server-9999/configure.ac.1	2007-06-18 16:25:55.000000000 +0200
+++ xorg-server-9999/configure.ac	2007-06-18 16:25:40.000000000 +0200
@@ -1164,7 +1164,7 @@
 AM_CONDITIONAL(XNEST, [test "x$XNEST" = xyes])
 
 if test "x$XNEST" = xyes; then
-	XNEST_LIBS="$XSERVER_LIBS $FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB $LIBS"
+	XNEST_LIBS="$MI_LIB $CONFIG_LIB $XSERVER_LIBS $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB $LIBS"
 	AC_SUBST([XNEST_LIBS])
 fi
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.x.org/archives/xorg/attachments/20070621/bced8b6d/attachment.pgp>


More information about the xorg mailing list