Skip to content

Commit

Permalink
BUILD: set LDFLAGS for fftw
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Westerfeld <stefan@space.twc.de>
  • Loading branch information
swesterfeld committed May 2, 2024
1 parent e2e5705 commit 89c69f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ AC_DEFUN([AC_FFTW_CHECK],
SPECTMORPH_HAVE_FFTW=1
if test $SPECTMORPH_HAVE_FFTW -gt 0; then
fftw_save_CFLAGS="$CFLAGS"
fftw_save_LDFLAGS="$LDFLAGS"
CFLAGS="$CFLAGS $FFTW_CFLAGS"
LDFLAGS="$LDFLAGS $FFTW_LIBS"
AC_MSG_CHECKING([whether FFTW is recent enough])
AC_COMPILE_IFELSE([
AC_LANG_SOURCE([
Expand Down Expand Up @@ -215,6 +217,7 @@ AC_DEFUN([AC_FFTW_CHECK],
FFTW_LIBS="-lfftw3f_threads $FFTW_LIBS"
])
CFLAGS="$fftw_save_CFLAGS"
LDFLAGS="$fftw_save_LDFLAGS"
fi
AC_DEFINE_UNQUOTED(SPECTMORPH_HAVE_FFTW, $SPECTMORPH_HAVE_FFTW, [Whether libfftw3 is available])
AC_DEFINE_UNQUOTED(SPECTMORPH_HAVE_FFTW_THREADSAFE, $SPECTMORPH_HAVE_FFTW_THREADSAFE, [Whether fftw3 supports threadsafe planner api])
Expand Down

0 comments on commit 89c69f4

Please sign in to comment.