Bump buildroot to 2019.02
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
configure.ac: add check for NO_GETCONTEXT definition
|
||||
|
||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
||||
[yann.morin.1998@free.fr: add a comment, change variable name, use
|
||||
AS_IF, remove debug traces, use AC_CHECK_FUNCS (as suggested by
|
||||
Thomas)]
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
---
|
||||
configure.ac | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
--- bdwgc-7.2f.orig/configure.ac 2014-06-01 19:00:47.000000000 +0200
|
||||
+++ bdwgc-7.2f/configure.ac 2014-12-23 14:13:11.585716713 +0100
|
||||
@@ -365,6 +365,12 @@
|
||||
AC_MSG_RESULT($ac_cv_fno_strict_aliasing)
|
||||
fi
|
||||
|
||||
+# Check for getcontext (uClibc can be configured without it, for example)
|
||||
+AC_CHECK_FUNCS([getcontext])
|
||||
+AS_IF([test "$ac_cv_func_getcontext" = "no"],
|
||||
+ [CFLAGS="$CFLAGS -DNO_GETCONTEXT"
|
||||
+ CPPFLAGS="$CPPFLAGS -DNO_GETCONTEXT"])
|
||||
+
|
||||
case "$host" in
|
||||
# While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
|
||||
# and unnecessary everywhere.
|
||||
@@ -0,0 +1,57 @@
|
||||
From b549c7faa9903340b09ef2592a2c7c213a110220 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Mon, 5 Nov 2018 22:50:40 +0100
|
||||
Subject: [PATCH] fix link with of bdw-gc with a system atomic_ops
|
||||
|
||||
When bdw-gc is linked with libatomic_ops, bdw-gc.pc must contain the
|
||||
needed libraries (such as -latomic_ops) otherwise build of applications
|
||||
such as guile will fail on link stage:
|
||||
|
||||
.libs/libguile_2.0_la-posix.o: In function `scm_tmpnam':
|
||||
posix.c:(.text+0x2080): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
|
||||
CCLD guile
|
||||
/home/buildroot/autobuild/run/instance-2/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgc.so: undefined reference to `AO_fetch_compare_and_swap_emulation'
|
||||
/home/buildroot/autobuild/run/instance-2/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgc.so: undefined reference to `AO_store_full_emulation'
|
||||
|
||||
So set ATOMIC_OPS_LIBS to -latomic_ops when a system atomic_ops library
|
||||
is used and use ATOMIC_OPS_LIBS in bdw-gc.pc.in
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/2b23d445e57a5e0f417f5cb9417b0a668bb7bf1c
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/ivmai/bdwgc/pull/247]
|
||||
---
|
||||
bdw-gc.pc.in | 2 +-
|
||||
configure.ac | 4 +++-
|
||||
2 files changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/bdw-gc.pc.in b/bdw-gc.pc.in
|
||||
index ef4c2341..9fc42465 100644
|
||||
--- a/bdw-gc.pc.in
|
||||
+++ b/bdw-gc.pc.in
|
||||
@@ -6,5 +6,5 @@ includedir=@includedir@
|
||||
Name: Boehm-Demers-Weiser Conservative Garbage Collector
|
||||
Description: A garbage collector for C and C++
|
||||
Version: @PACKAGE_VERSION@
|
||||
-Libs: -L${libdir} -lgc
|
||||
+Libs: -L${libdir} -lgc @ATOMIC_OPS_LIBS@
|
||||
Cflags: -I${includedir}
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 21abe8fa..9ffe81de 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1081,7 +1081,9 @@ AS_IF([test x"$with_libatomic_ops" = xno \
|
||||
AC_MSG_CHECKING([which libatomic_ops to use])
|
||||
AS_IF([test x"$with_libatomic_ops" != xno],
|
||||
[ AS_IF([test x"$with_libatomic_ops" != xnone -a x"$THREADS" != xnone],
|
||||
- [ AC_MSG_RESULT([external]) ],
|
||||
+ [ AC_MSG_RESULT([external])
|
||||
+ ATOMIC_OPS_LIBS="-latomic_ops"
|
||||
+ AC_SUBST([ATOMIC_OPS_LIBS]) ],
|
||||
[ AC_MSG_RESULT([none])
|
||||
AS_IF([test x"$THREADS" != xnone],
|
||||
[ AC_DEFINE([GC_BUILTIN_ATOMIC], [1],
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
From 31eef02317d59b4d204624efbddaea641e861390 Mon Sep 17 00:00:00 2001
|
||||
From: Mikael Djurfeldt <mikael@djurfeldt.com>
|
||||
Date: Sun, 26 Feb 2017 20:09:56 +0100
|
||||
Subject: [PATCH] Fix 'size of tv is unknown' error in
|
||||
brief_async_signal_safe_sleep (musl) (fix commits 62097c3, 9f48082)
|
||||
|
||||
Include <sys/time.h> to get struct timeval defined and select() declared.
|
||||
|
||||
* pthread_stop_world.c [GC_ENABLE_SUSPEND_THREAD]: Include sys/time.h
|
||||
before GC_brief_async_signal_safe_sleep definition.
|
||||
|
||||
Upstream status: upstream
|
||||
commit ffad61d3bbe86c09ffe062dab393fcb0e4940580
|
||||
|
||||
[Romain: backported to 7.6.0]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
pthread_stop_world.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
|
||||
index dad1fdc..8c76944 100644
|
||||
--- a/pthread_stop_world.c
|
||||
+++ b/pthread_stop_world.c
|
||||
@@ -391,6 +391,7 @@ STATIC void GC_restart_handler(int sig)
|
||||
# ifndef GC_TIME_LIMIT
|
||||
# define GC_TIME_LIMIT 50
|
||||
# endif
|
||||
+# include <sys/time.h>
|
||||
|
||||
STATIC void GC_brief_async_signal_safe_sleep(void)
|
||||
{
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 bd112005563d787675163b5afff02c364fc8deb13a99c03f4e80fdf6608ad41e gc-7.6.2.tar.gz
|
||||
sha256 9944acfcee6cca308d974933977c1608804f5ad4345aac7cb8608137104e3742 README.QUICK
|
||||
sha256 8f23f9a20883d00af2bff122249807e645bdf386de0de8cbd6cce3e0c6968f04 gc-8.0.0.tar.gz
|
||||
sha256 aeeaabbf44e67d413e18719f0c6ac9c23387ab0b33e7a15ee46cf59ddef12cc7 README.QUICK
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BDWGC_VERSION = 7.6.2
|
||||
BDWGC_VERSION = 8.0.0
|
||||
BDWGC_SOURCE = gc-$(BDWGC_VERSION).tar.gz
|
||||
BDWGC_SITE = http://www.hboehm.info/gc/gc_source
|
||||
BDWGC_INSTALL_STAGING = YES
|
||||
@@ -12,24 +12,26 @@ BDWGC_LICENSE = bdwgc license
|
||||
BDWGC_LICENSE_FILES = README.QUICK
|
||||
BDWGC_DEPENDENCIES = libatomic_ops host-pkgconf
|
||||
HOST_BDWGC_DEPENDENCIES = host-libatomic_ops host-pkgconf
|
||||
|
||||
# The libtool shipped with the package is bogus and generates some
|
||||
# -L/usr/lib flags. It uses a version not supported by Buildroot
|
||||
# libtool patches, so autoreconfiguring the packages is the easiest
|
||||
# solution.
|
||||
# We're patching configure.ac
|
||||
BDWGC_AUTORECONF = YES
|
||||
|
||||
BDWGC_CFLAGS = $(TARGET_CFLAGS)
|
||||
BDWGC_CONF_OPTS = CFLAGS_EXTRA="$(BDWGC_CFLAGS_EXTRA)"
|
||||
ifeq ($(BR2_sparc),y)
|
||||
BDWGC_CFLAGS += -DAO_NO_SPARC_V9
|
||||
BDWGC_CFLAGS_EXTRA += -DAO_NO_SPARC_V9
|
||||
endif
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
BDWGC_CFLAGS += -DGC_NO_DLOPEN
|
||||
BDWGC_CFLAGS_EXTRA += -DGC_NO_DLOPEN
|
||||
endif
|
||||
|
||||
# Ensure we use the system libatomic_ops, and not the internal one.
|
||||
BDWGC_CONF_OPTS = --with-libatomic-ops=yes CFLAGS="$(BDWGC_CFLAGS)"
|
||||
BDWGC_CONF_OPTS += --with-libatomic-ops=yes
|
||||
HOST_BDWGC_CONF_OPTS = --with-libatomic-ops=yes
|
||||
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
BDWGC_CONF_OPTS += --enable-cplusplus
|
||||
else
|
||||
BDWGC_CONF_OPTS += --disable-cplusplus
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user