diff --git a/src/gallium/state_trackers/clover/Makefile.in.orig b/src/gallium/state_trackers/clover/Makefile.in
index adf9af6..eac75af 100644
--- a/src/gallium/state_trackers/clover/Makefile.in.orig
+++ b/src/gallium/state_trackers/clover/Makefile.in
@@ -644,6 +644,7 @@ libclllvm_la_CXXFLAGS = \
 	$(VISIBILITY_CXXFLAGS) \
 	$(LLVM_CXXFLAGS) \
 	$(DEFINES) \
+	$(LIBELF_CFLAGS) \
 	-DLIBCLC_INCLUDEDIR=\"$(LIBCLC_INCLUDEDIR)/\" \
 	-DLIBCLC_LIBEXECDIR=\"$(LIBCLC_LIBEXECDIR)/\" \
 	-DCLANG_RESOURCE_DIR=\"$(CLANG_RESOURCE_DIR)\"
