Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -1,53 +0,0 @@
|
||||
From 10fee6d71a1f7d6e6319005196562b4a30b4e8ff Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Tue, 2 Feb 2016 14:58:52 +0100
|
||||
Subject: [PATCH] Fix detection of C11 atomics
|
||||
|
||||
Currently, the CMakeLists.txt logic to detect the availability of C11
|
||||
atomics is based on building a small program that uses the
|
||||
atomic_load().
|
||||
|
||||
However, atomic_load() does not need to use any function from
|
||||
libatomic (part of the gcc runtime). So even if libatomic is missing,
|
||||
this test concludes that C11 atomic support is available. For example
|
||||
on SPARC, the example program builds fine without linking to
|
||||
libatomic, but calling other functions of the atomic_*() APIs fail
|
||||
without linking to libatomic.
|
||||
|
||||
So, this patch adjusts the CMakeLists.txt test to use a function that
|
||||
is known to require the libatomic run-time library (on architectures
|
||||
where it is needed). This way, openal will only use the __atomic_*()
|
||||
built-ins when they are actually functional.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
CMakeLists.txt | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 5784d35..a53f996 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -209,14 +209,17 @@ CHECK_C_SOURCE_COMPILES(
|
||||
HAVE_C11_ALIGNAS)
|
||||
|
||||
# Check if we have C11 _Atomic
|
||||
+set(OLD_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
|
||||
+set(CMAKE_REQUIRED_LIBRARIES ${EXTRA_LIBS})
|
||||
CHECK_C_SOURCE_COMPILES(
|
||||
"#include <stdatomic.h>
|
||||
- const int _Atomic foo = ATOMIC_VAR_INIT(~0);
|
||||
+ int _Atomic foo = ATOMIC_VAR_INIT(~0);
|
||||
int main()
|
||||
{
|
||||
- return atomic_load(&foo);
|
||||
+ return atomic_fetch_add(&foo, 2);
|
||||
}"
|
||||
HAVE_C11_ATOMIC)
|
||||
+set(CMAKE_REQUIRED_LIBRARIES ${OLD_REQUIRED_LIBRARIES})
|
||||
|
||||
# Add definitions, compiler switches, etc.
|
||||
INCLUDE_DIRECTORIES("${OpenAL_SOURCE_DIR}/include" "${OpenAL_BINARY_DIR}")
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -1,6 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 a341f8542f1f0b8c65241a17da13d073f18ec06658e1a1606a8ecc8bbc2b3314 openal-soft-1.17.2.tar.bz2
|
||||
sha256 9c9040269376aba77b1277bbae0f055aee535e14ad4a3ab4e66e39830504e83f 27916ce3db023454a0295ee63ea196fbc246674c.patch
|
||||
sha256 4621f6b79d4bbac5ce423f227c92ad1e4f833d7e1f2ff1cc3b5f03721f75b933 a52cfc804813aef8e4b304e20cf843fa6907af6c.patch
|
||||
sha256 f442da31b4001a5133f2762a5bc1e780b11d5e2d9f21b257f54695ee6d87d997 c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1.patch
|
||||
sha256 3691c1a327b87d5fb487841459fd00d3baaa79808ecb5e3b33b349363663640f 46b3e1d08ca10e809eb2e20b6371812958b97e1f.patch
|
||||
sha256 2d51a6529526ef22484f51567e31a5c346a599767991a3dc9d4dcd9d9cec71dd openal-soft-1.18.1.tar.bz2
|
||||
|
||||
@@ -4,15 +4,10 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPENAL_VERSION = 1.17.2
|
||||
OPENAL_VERSION = 1.18.1
|
||||
OPENAL_SOURCE = openal-soft-$(OPENAL_VERSION).tar.bz2
|
||||
OPENAL_SITE = http://kcat.strangesoft.net/openal-releases
|
||||
OPENAL_PATCH = \
|
||||
https://github.com/kcat/openal-soft/commit/27916ce3db023454a0295ee63ea196fbc246674c.patch \
|
||||
https://github.com/kcat/openal-soft/commit/a52cfc804813aef8e4b304e20cf843fa6907af6c.patch \
|
||||
https://github.com/kcat/openal-soft/commit/c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1.patch \
|
||||
https://github.com/kcat/openal-soft/commit/46b3e1d08ca10e809eb2e20b6371812958b97e1f.patch
|
||||
OPENAL_LICENSE = LGPLv2+
|
||||
OPENAL_LICENSE = LGPL-2.0+
|
||||
OPENAL_LICENSE_FILES = COPYING
|
||||
OPENAL_INSTALL_STAGING = YES
|
||||
|
||||
|
||||
Reference in New Issue
Block a user