name=xorg-server
version=1.7.3
-release=1
+release=2
source=(http://xorg.freedesktop.org/releases/individual/xserver/$name-$version.tar.bz2)
build() {
export SHA1_CFLAGS="$DEFAULT_CFLAGS"
export XSERVERCFLAGS_LIBS="$DEFAULT_LIBS -lXfont -lXau -lpixman-1 -lXdmcp -lXv"
export XSERVERCFLAGS_CFLAGS="$DEFAULT_CFLAGS -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/pixman-1"
- export XSERVERLIBS_LIBS="$DEFAULT_LIBS -lXfont -lXau -lpixman-1 -lXdmcp -lXv -lcrypt -lssl"
+ export XSERVERLIBS_LIBS="$DEFAULT_LIBS -lXrandr -lXfont -lXau -lpixman-1 -lXdmcp -lXv -lcrypt -lssl"
export XSERVERLIBS_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/pixman-1"
export PCIACCESS_LIBS="$DEFAULT_LIBS -lpciaccess"
export PCIACCESS_CFLAGS="$DEFAULT_CFLAGS"
export XF86VIDMODE_LIBS="$DEFAULT_LIBS"
export XF86VIDMODE_CFLAGS="$DEFAULT_CFLAGS"
- export XORG_MODULES_LIBS="$DEFAULT_LIBS"
+ export XORG_MODULES_LIBS="$DEFAULT_LIBS -lXrandr"
export XORG_MODULES_CFLAGS="$DEFAULT_CFLAGS"
./configure --build=$CHOST \