From: Christophe CURIS <christophe.cu...@free.fr>

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 <christophe.cu...@free.fr>
---
 WPrefs.app/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/WPrefs.app/Makefile.am b/WPrefs.app/Makefile.am
index c142426..f77ddd4 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@
-- 
2.1.3


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to