File moc-2.4.4-underlinking.patch of Package moc

Index: Makefile.am
===================================================================
--- Makefile.am.orig
+++ Makefile.am
@@ -67,7 +67,7 @@ EXTRA_mocp_SOURCES = gnugetopt.h \
 		     jack.c \
 		     jack.h
 man_MANS = mocp.1
-mocp_LDADD = @EXTRA_OBJS@ -L$(top_builddir)/libltdl $(LIBLTDL)
+mocp_LDADD = @EXTRA_OBJS@ -L$(top_builddir)/libltdl $(LIBLTDL) $(LIBM)
 mocp_DEPENDENCIES = @EXTRA_OBJS@
 mocp_LDFLAGS = @EXTRA_LIBS@
 EXTRA_DIST = config.example mocp.1 THANKS keymap.example Doxyfile \
Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -22,6 +22,7 @@ AC_DISABLE_STATIC
 AC_ENABLE_SHARED
 AC_PROG_LIBTOOL
 AC_LIB_LTDL
+LT_LIB_M
 
 AC_SUBST([EXTRA_OBJS])
 AC_SUBST([DECODER_PLUGINS])
Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -347,7 +347,7 @@ EXTRA_mocp_SOURCES = gnugetopt.h \
 		     jack.h
 
 man_MANS = mocp.1
-mocp_LDADD = @EXTRA_OBJS@ -L$(top_builddir)/libltdl $(LIBLTDL)
+mocp_LDADD = @EXTRA_OBJS@ -L$(top_builddir)/libltdl $(LIBLTDL) -lm
 mocp_DEPENDENCIES = @EXTRA_OBJS@
 mocp_LDFLAGS = @EXTRA_LIBS@
 EXTRA_DIST = config.example mocp.1 THANKS keymap.example Doxyfile \