diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2015-10-27 18:33:15 +0100 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2015-10-27 18:33:15 +0100 |
commit | 7822f7e84d72d19c903308f150dccc1e6124814d (patch) | |
tree | 7f6e057da0847fe110d817bffd651cf80e16b0b1 | |
parent | 896b3fcfe101bd84a3cbf04b46022cc7f8c1c879 (diff) |
spandsp: patch spandsp's Makefile.am to reliably generate some headers with recent autotools
-rw-r--r-- | recipes/spandsp.recipe | 3 | ||||
-rw-r--r-- | recipes/spandsp/0003-Use-BUILT_SOURCES-to-generate-extra-headers.patch | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/recipes/spandsp.recipe b/recipes/spandsp.recipe index fa57f83b..e8b1f7cc 100644 --- a/recipes/spandsp.recipe +++ b/recipes/spandsp.recipe @@ -11,7 +11,8 @@ class Recipe(recipe.Recipe): allow_parallel_build = False config_sh = 'sh ./autogen.sh && sh ./configure' patches = [ 'spandsp/0001-spandsp-do-not-compile-has_X86FEATURE-symbols.patch', - 'spandsp/0002-Define-LIBSPANDSP_EXPORTS-when-building-the-spandsp-.patch' ] + 'spandsp/0002-Define-LIBSPANDSP_EXPORTS-when-building-the-spandsp-.patch', + 'spandsp/0003-Use-BUILT_SOURCES-to-generate-extra-headers.patch' ] files_libs = ['libspandsp'] files_devel = ['include/spandsp', 'include/spandsp.h', 'lib/pkgconfig/spandsp.pc'] diff --git a/recipes/spandsp/0003-Use-BUILT_SOURCES-to-generate-extra-headers.patch b/recipes/spandsp/0003-Use-BUILT_SOURCES-to-generate-extra-headers.patch new file mode 100644 index 00000000..447c45a9 --- /dev/null +++ b/recipes/spandsp/0003-Use-BUILT_SOURCES-to-generate-extra-headers.patch @@ -0,0 +1,35 @@ +From 238b6cb088d339c0d772c501289c3bc708f768b4 Mon Sep 17 00:00:00 2001 +From: George Kiagiadakis <george.kiagiadakis@collabora.com> +Date: Tue, 27 Oct 2015 17:27:20 +0000 +Subject: [PATCH] Use BUILT_SOURCES to generate extra headers + +The .o / .lo dependencies do not work reliably with more recent autotools. +--- + src/Makefile.am | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 72ff3af..5fa1d41 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -567,3 +567,17 @@ spandsp/version.h: + NOWTIME=`date --utc +"%H%M%S"` ; \ + sed 's/$$SPANDSP_RELEASE_DATE/'$$NOWDATE'/;s/$$SPANDSP_RELEASE_TIME/'$$NOWTIME'/' \ + <$(srcdir)/spandsp/version.h.in >$@ ++ ++ ++BUILT_SOURCES = \ ++ at_interpreter_dictionary.h \ ++ math_fixed_tables.h \ ++ spandsp/version.h \ ++ ${V17_V32BIS_RX_INCL} \ ++ ${V17_V32BIS_TX_INCL} \ ++ ${V22BIS_RX_INCL} \ ++ ${V22BIS_TX_INCL} \ ++ ${V27_RX_INCL} \ ++ ${V27TER_TX_INCL} \ ++ ${V29_RX_INCL} \ ++ ${V29_TX_INCL} +-- +2.4.3 + |