--- a/src/mk/localdefs.in
+++ b/src/mk/localdefs.in
@@ -5,5 +5,5 @@
 LIBICONV=@LIBICONV@
 INCICONV=@INCICONV@
 
-LOCALCXXFLAGS = $(INCICONV) $(CXXFLAGSXAPIAN)
+LOCALCXXFLAGS = $(INCICONV) $(XAPIANCXXFLAGS)