summaryrefslogtreecommitdiffstats
path: root/package/lttng-babeltrace
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-05-28 08:21:29 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-28 20:47:29 +0200
commitc95ba8a487ba751134f63e2bbf45c5a09ee870a3 (patch)
tree25acede8f79d9fbf1b7977ce0bac8769b91b6349 /package/lttng-babeltrace
parent9428d103621f12fa1fd51ebaeb782128c9fae014 (diff)
downloadbuildroot-novena-c95ba8a487ba751134f63e2bbf45c5a09ee870a3.tar.gz
buildroot-novena-c95ba8a487ba751134f63e2bbf45c5a09ee870a3.zip
lttng-babeltrace: fix build failure on gcc14
The gcc14 machine has a moderately old host gcc, which was causing a recurrent build failure of host-lttng-babeltrace: http://autobuild.buildroot.org/results/492/49216052c161874f41738e41e6e0c89a6dd04000/build-end.log This commit adds a patch to fix this build failure, related to the access of the ULLONG_MAX define on compilers that did not default to the C99 variant of the C language. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/lttng-babeltrace')
-rw-r--r--package/lttng-babeltrace/lttng-babeltrace-01-no-posix-fallocate-in-uclibc.patch (renamed from package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch)0
-rw-r--r--package/lttng-babeltrace/lttng-babeltrace-02-fix-build-old-compilers.patch27
-rw-r--r--package/lttng-babeltrace/lttng-babeltrace.mk4
3 files changed, 31 insertions, 0 deletions
diff --git a/package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch b/package/lttng-babeltrace/lttng-babeltrace-01-no-posix-fallocate-in-uclibc.patch
index d77825fab..d77825fab 100644
--- a/package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch
+++ b/package/lttng-babeltrace/lttng-babeltrace-01-no-posix-fallocate-in-uclibc.patch
diff --git a/package/lttng-babeltrace/lttng-babeltrace-02-fix-build-old-compilers.patch b/package/lttng-babeltrace/lttng-babeltrace-02-fix-build-old-compilers.patch
new file mode 100644
index 000000000..b8f31be1e
--- /dev/null
+++ b/package/lttng-babeltrace/lttng-babeltrace-02-fix-build-old-compilers.patch
@@ -0,0 +1,27 @@
+Support old compilers
+
+Some old compilers do not use C99 as their default C language variant,
+for example gcc 4.3.x, which is used on some old machines. When such a
+compiler is used, by default, ULLONG_MAX is not visible. Adding
+-std=gnu99 is needed to make this definition visible.
+
+In autoconf speak, this translates into the need of using
+AC_PROC_CC_STDC instead of AC_PROG_CC. See
+http://www.gnu.org/software/autoconf/manual/autoconf-2.65/html_node/C-Compiler.html
+for more details.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/configure.ac
+===================================================================
+--- a/configure.ac
++++ b/configure.ac
+@@ -17,7 +17,7 @@
+ AC_SYS_LARGEFILE
+
+ # Checks for programs.
+-AC_PROG_CC
++AC_PROG_CC_STDC
+ AC_PROG_MAKE_SET
+ LT_INIT
+ AC_PROG_YACC
diff --git a/package/lttng-babeltrace/lttng-babeltrace.mk b/package/lttng-babeltrace/lttng-babeltrace.mk
index 82376a3fe..d3bfc83d9 100644
--- a/package/lttng-babeltrace/lttng-babeltrace.mk
+++ b/package/lttng-babeltrace/lttng-babeltrace.mk
@@ -4,5 +4,9 @@ LTTNG_BABELTRACE_SOURCE = babeltrace-$(LTTNG_BABELTRACE_VERSION).tar.bz2
LTTNG_BABELTRACE_DEPENDENCIES = popt util-linux libglib2
+# One patch touches configure.ac
+LTTNG_BABELTRACE_AUTORECONF = YES
+HOST_LTTNG_BABELTRACE_AUTORECONF = YES
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))