From 12babda9e7050a95789cc4173b072e2e815e1fbc Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 5 Dec 2014 18:02:42 +0100 Subject: [PATCH] WPrefs: link against math library because it is used in a few places The code is making use of a few of the libm functions, but it looks like gcc adds automatically the libm dependency (either by trying to be smart or as an inherited dependency?). Apparently, when compiling with clang-3.5 the function 'round' still needs the use of math library (the others do not seem to), so this patch adds it to the list of link libraries, which is more portable. Signed-off-by: Christophe CURIS --- WPrefs.app/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/WPrefs.app/Makefile.am b/WPrefs.app/Makefile.am index c1424262..f77ddd4a 100644 --- a/WPrefs.app/Makefile.am +++ b/WPrefs.app/Makefile.am @@ -57,5 +57,6 @@ WPrefs_LDADD = \ $(top_builddir)/WINGs/libWUtil.la\ $(top_builddir)/wrlib/libwraster.la \ @XLFLAGS@ @XLIBS@ \ + @LIBM@ \ @FCLIBS@ \ @INTLIBS@