1diff --git a/libspeexdsp/Makefile.am b/libspeexdsp/Makefile.am
2index d0499b9..42e8d50 100644
3--- a/libspeexdsp/Makefile.am
4+++ b/libspeexdsp/Makefile.am
5@@ -29,7 +29,7 @@ noinst_HEADERS = arch.h bfin.h \
6 pseudofloat.h smallft.h vorbis_psy.h resample_sse.h resample_neon.h
7
8 libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEXDSP_LT_CURRENT@:@SPEEXDSP_LT_REVISION@:@SPEEXDSP_LT_AGE@
9-libspeexdsp_la_LIBADD = $(LIBM)
10+libspeexdsp_la_LIBADD = @FFT_LIBS@ $(LIBM)
11
12 if BUILD_EXAMPLES
13 noinst_PROGRAMS = testdenoise testecho testjitter testresample
14diff --git a/speexdsp.pc.in b/speexdsp.pc.in
15index 6c6d26f..d40d856 100644
16--- a/speexdsp.pc.in
17+++ b/speexdsp.pc.in
18@@ -11,5 +11,5 @@ Version: @PACKAGE_VERSION@
19 Requires: @FFT_PKGCONFIG@
20 Conflicts:
21 Libs: -L${libdir} -lspeexdsp
22-Libs.private: @LIBM@
23+Libs.private: @FFT_LIBS@ @LIBM@
24 Cflags: -I${includedir}