--- src/lib-fts/Makefile.in.orig
+++ src/lib-fts/Makefile.in
@@ -549,7 +549,7 @@
 	word-break-data.c \
 	stopwords/stopwords_malformed.txt
 
-@BUILD_FTS_STEMMER_TRUE@STEMMER_LIBS = -lstemmer
+@BUILD_FTS_STEMMER_TRUE@STEMMER_LIBS = -lclucene-contribs-lib
 @BUILD_FTS_EXTTEXTCAT_FALSE@@BUILD_FTS_TEXTCAT_TRUE@TEXTCAT_LIBS = -ltextcat
 @BUILD_FTS_EXTTEXTCAT_TRUE@TEXTCAT_LIBS = $(LIBEXTTEXTCAT_LIBS)
 @BUILD_LIBICU_TRUE@ICU_SOURCES = fts-icu.c
