diff --git a/x11/xorg-server/APKBUILD b/x11/xorg-server/APKBUILD
index d38a71a5e1c3972fc01ced54317e88cc4b2d655a..ed27fbaebe3f0452461f5fab192992ee6928a0e5 100644
--- a/x11/xorg-server/APKBUILD
+++ b/x11/xorg-server/APKBUILD
@@ -1,12 +1,14 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=xorg-server
 pkgver=1.6.1
-pkgrel=0
+pkgrel=1
 pkgdesc="X.Org X servers"
 url="http://xorg.freedesktop.org"
 license="custom"
 subpackages="$pkgname-dev $pkgname-doc xfbdev"
 depends="
+	font-misc-misc
+	font-cursor-misc
 	libpciaccess
 	libx11
 	libxdamage
@@ -19,6 +21,9 @@ depends="
 	pixman
 	uclibc
 	libgcc
+	xkeyboard-config
+	xkbcomp
+	xinit
 	"
 makedepends="
 	libpciaccess-dev
@@ -61,6 +66,12 @@ depends_dev="pixman-dev libpciaccess-dev"
 build () {
 	cd "$srcdir"/$pkgname-$pkgver
 
+	# xorg modules does not work with the -z now and it seems like we
+	# cannot pass over the linker flag to .so files. so we tweak the
+	# gcc specs.
+	${CC:-gcc} -dumpspecs | sed 's/%(link_now)//g' > "$srcdir"/gcc-specs
+	export GCC_SPECS="$srcdir"/gcc-specs
+
 	./configure --prefix=/usr \
 		--sysconfdir=/etc/X11 \
 		--localstatedir=/var \
@@ -72,8 +83,6 @@ build () {
 		--enable-ipv6 \
 		--enable-xfbdev \
 		--enable-kdrive \
-		--enable-kdrive-vesa \
-		--enable-randr \
 		--enable-xorg \
 		--enable-xv \
 		--enable-xres \
@@ -83,19 +92,16 @@ build () {
 		--disable-config-hal \
 		--disable-dmx \
 		--disable-glx \
-		--disable-glx-tsl \
 		--disable-tslib \
 		--disable-xfree86-utils \
 		--disable-xinerama \
 		--disable-xnest \
-		--disable-xorgcfg \
 		--disable-xsdl \
 		--disable-aiglx \
 		--disable-xvmc \
 		--disable-screensaver \
 		--disable-xinerama \
 		--disable-xace \
-		--disable-dbe \
 		|| return 1
 
 #		--enable-xnest \