summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/liba52-link-with-libm.patch
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2015-07-07 02:30:25 -0400
committerMark H Weaver <mhw@netris.org>2015-07-07 10:52:04 -0400
commit23da88f61e82e2b32d6dedb3af467f665cd03bf5 (patch)
treedc58ab24ba57f3b7cfae50639e80a5a2f9ba5d21 /gnu/packages/patches/liba52-link-with-libm.patch
parent4ca5c91f65bdc5a90e30991d2cc346667b54ceee (diff)
gnu: liba52: Build shared library.
* gnu/packages/patches/liba52-enable-pic.patch, gnu/packages/patches/liba52-link-with-libm.patch, gnu/packages/patches/liba52-set-soname.patch, gnu/packages/patches/liba52-use-mtune-not-mcpu.patch: New files. * gnu-system.am (dist_patch_DATA): Add them. * gnu/packages/video.scm (liba52)[source]: Add patches. [native-inputs]: Add autoconf, automake, and libtool. [arguments]: Add "--enable-shared" to configure-flags. Add 'bootstrap' phase.
Diffstat (limited to 'gnu/packages/patches/liba52-link-with-libm.patch')
-rw-r--r--gnu/packages/patches/liba52-link-with-libm.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/patches/liba52-link-with-libm.patch b/gnu/packages/patches/liba52-link-with-libm.patch
new file mode 100644
index 0000000000..a0771aaa62
--- /dev/null
+++ b/gnu/packages/patches/liba52-link-with-libm.patch
@@ -0,0 +1,33 @@
+Copied from Debian.
+
+Description: Explicitely link against -lm
+Bug-Debian: http://bugs.debian.org/553595
+Author: Fabian Greffrath <fabian@debian-unofficial.org>, Dmitrijs Ledkovs <dmitrij.ledkov@gmail.com>
+
+---
+ libao/Makefile.am | 1 +
+ src/Makefile.am | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletions(-)
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,9 +1,9 @@
+-CFLAGS = @A52DEC_CFLAGS@
++AM_CFLAGS = @A52DEC_CFLAGS@
+
+ bin_PROGRAMS = a52dec extract_a52
+ a52dec_SOURCES = a52dec.c getopt.c gettimeofday.c
+ a52dec_LDADD = $(top_builddir)/liba52/liba52.la \
+- $(top_builddir)/libao/libao.a @LIBAO_LIBS@
++ $(top_builddir)/libao/libao.a @LIBAO_LIBS@ -lm
+ extract_a52_SOURCES = extract_a52.c getopt.c
+
+ man_MANS = a52dec.1 extract_a52.1
+--- a/liba52/Makefile.am
++++ b/liba52/Makefile.am
+@@ -1,4 +1,4 @@
+-CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@
++AM_CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@
+
+ lib_LTLIBRARIES = liba52.la
+