diff --git a/libcaca.spec b/libcaca.spec
index 57f5a63..9d7d5b8 100644
--- a/libcaca.spec
+++ b/libcaca.spec
@@ -58,6 +58,8 @@ sprite blitting.
%build
%configure \
+ --x-includes=%{_includedir} \
+ --x-libraries=%{_libdir} \
--enable-slang \
--enable-ncurses \
--enable-x11 \
@@ -104,6 +106,7 @@ sprite blitting.
%changelog
* Thu Nov 17 2005 Matthias Saou 0.9-7
- Change XFree86-devel requirements to libX11-devel.
+- Force --x-includes= and --x-libraries=, otherwise -L gets passed empty.
* Fri Apr 1 2005 Michael Schwendt 0.9-6
- Include libcaca datadir.