diff options
Diffstat (limited to 'media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch')
-rw-r--r-- | media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch b/media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch new file mode 100644 index 000000000000..0fb96ae1ff00 --- /dev/null +++ b/media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch @@ -0,0 +1,32 @@ +Fix libm (and ncurses) underlinking issues. +https://bugs.gentoo.org/show_bug.cgi?id=529490 + +--- mpfc-1.3.8.1/configure.ac ++++ mpfc-1.3.8.1/configure.ac +@@ -13,13 +13,13 @@ + COMMON_LIBS="" + AC_SUBST(COMMON_LIBS) + ++dnl Check for libm for rintf() ++AC_SEARCH_LIBS([rintf], [m], [], [ ++ AC_MSG_ERROR([unable to find the rintf() function]) ++]) ++ + # Check for ncurses +-LIBS_save=$LIBS +-AC_CHECK_HEADERS([curses.h],,[AC_MSG_ERROR(*** Can't find curses.h ***)]) +-AC_CHECK_LIB(ncursesw, waddch,,[AC_MSG_ERROR(*** Can't find ncurses library ***)]) +-CURSES_LIBS="-lncursesw" +-AC_SUBST(CURSES_LIBS) +-LIBS=$LIBS_save ++PKG_CHECK_MODULES([CURSES], [ncursesw]) + + # Check for pthread + LIBS_save=$LIBS +--- mpfc-1.3.8.1/libmpfcwnd/Makefile.am ++++ mpfc-1.3.8.1/libmpfcwnd/Makefile.am +@@ -1,3 +1,4 @@ ++AM_CPPFLAGS = @CURSES_CFLAGS@ + lib_LTLIBRARIES = libmpfcwnd.la + libmpfcwndhdrdir = $(includedir)/mpfc/libmpfcwnd + libmpfcwndhdr_HEADERS = wnd.h wnd_print.h wnd_msg.h wnd_kbd.h \ |