blob: 5a1a58989089868e0a476865bdd0f3eca01077bf [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 635fe26af51f20194c8b208e7d01303be1086d68 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 19 Feb 2019 10:31:11 +0100
4Subject: [PATCH] meson.build: do not hardcode 'linux' as the host system
5
6OE build system can set this to other values that include 'linux',
7e.g. 'linux-gnueabi'
8
9Upstream-Status: Pending
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11---
12 meson.build | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/meson.build b/meson.build
16index 4348f20..af5ed63 100644
17--- a/meson.build
18+++ b/meson.build
19@@ -1574,7 +1574,7 @@ atomicdefine = '''
20 # We know that we can always use real ("lock free") atomic operations with MSVC
21 if cc.get_id() == 'msvc' or cc.links(atomictest, name : 'atomic ops')
22 have_atomic_lock_free = true
23- if (host_system == 'android' or host_system == 'linux') and not cc.compiles(atomicdefine, name : 'atomic ops define')
24+ if (host_system == 'android' or host_system.contains('linux')) and not cc.compiles(atomicdefine, name : 'atomic ops define')
25 # When building for armv5 on Linux, gcc provides
26 # __sync_bool_compare_and_swap but doesn't define
27 # __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4