From 0062d96aefd9d456223b73479d5774610468cdcc Mon Sep 17 00:00:00 2001 From: Martin Reinecke Date: Fri, 6 Dec 2019 14:08:11 +0100 Subject: [PATCH] tweak libraries --- Makefile.am | 2 +- configure.ac | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 50ea60a..e105ca0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,7 +60,7 @@ EXTRA_DIST = \ check_PROGRAMS = sharp2_testsuite sharp2_testsuite_SOURCES = test/sharp2_testsuite.c test/memusage.c test/memusage.h -sharp2_testsuite_LDADD = libsharp2.la -lm +sharp2_testsuite_LDADD = libsharp2.la TESTS = runtest.sh diff --git a/configure.ac b/configure.ac index 28ec900..3b40dc2 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,10 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_PROG_CC_C99 AC_OPENMP + +# add math library +LIBS="-lm" + AC_PROG_LIBTOOL tmpval=`echo $CFLAGS | grep -c '\-DMULTIARCH'`