diff --git a/e17/evas/evas.conf b/e17/evas/evas.conf
index 141bd3615..3dc68c0a3 100644
--- a/e17/evas/evas.conf
+++ b/e17/evas/evas.conf
@@ -47,6 +47,8 @@ fi
 if pkginstalled xorg-server ; then
 	var_append confopt " " "--x-includes=$( pkgprefix includedir xorg-server )"
 	var_append confopt " " "--x-libraries=$( pkgprefix libdir xorg-server )"
+	var_append LDFLAGS ' ' "-L$( pkgprefix -r libdir xorg-server )"
+	export LDFLAGS
 fi
 
 # check if we can enable the OpenGL X11 display engine