diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-03-17 05:18:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-20 23:12:27 +0000 |
commit | f00cca81dffc8c46fc877424ce760856e5d0155a (patch) | |
tree | ac4795136ece5fe336b22e33f8a2c65569156d38 | |
parent | 51464e7b896e55c28b4cc4074c3492cc56d50c52 (diff) | |
download | poky-f00cca81dffc8c46fc877424ce760856e5d0155a.tar.gz |
bdwgc: Check for getcontext() API during configure
This helps in compiling dependent components like
guile where it shows the problem of missing getcontext
API when using libc which dont implement it e.g. musl
(From OE-Core rev: ee60d562c7352fb5a595274490e7f377645aa650)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 | ||||
-rw-r--r-- | meta/recipes-support/bdwgc/bdwgc_7.4.2.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-support/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch b/meta/recipes-support/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch new file mode 100644 index 0000000000..8ef774f0f2 --- /dev/null +++ b/meta/recipes-support/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | configure.ac: add check for NO_GETCONTEXT definition | ||
2 | |||
3 | Signed-off-by: Samuel Martin <s.martin49@gmail.com> | ||
4 | [yann.morin.1998@free.fr: add a comment, change variable name, use | ||
5 | AS_IF, remove debug traces, use AC_CHECK_FUNCS (as suggested by | ||
6 | Thomas)] | ||
7 | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> | ||
8 | Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
9 | |||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | configure.ac | 6 ++++++ | ||
13 | 1 file changed, 6 insertions(+) | ||
14 | |||
15 | --- bdwgc-7.2f.orig/configure.ac 2014-06-01 19:00:47.000000000 +0200 | ||
16 | +++ bdwgc-7.2f/configure.ac 2014-12-23 14:13:11.585716713 +0100 | ||
17 | @@ -365,6 +365,12 @@ | ||
18 | AC_MSG_RESULT($ac_cv_fno_strict_aliasing) | ||
19 | fi | ||
20 | |||
21 | +# Check for getcontext (uClibc can be configured without it, for example) | ||
22 | +AC_CHECK_FUNCS([getcontext]) | ||
23 | +AS_IF([test "$ac_cv_func_getcontext" = "no"], | ||
24 | + [CFLAGS="$CFLAGS -DNO_GETCONTEXT" | ||
25 | + CPPFLAGS="$CPPFLAGS -DNO_GETCONTEXT"]) | ||
26 | + | ||
27 | case "$host" in | ||
28 | # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64 | ||
29 | # and unnecessary everywhere. | ||
diff --git a/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb b/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb index 95e358f8e6..209f533b14 100644 --- a/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb +++ b/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb | |||
@@ -23,6 +23,7 @@ LIC_FILES_CHKSUM = "file://README.QUICK;md5=55f5088f90a982fed7af9a4897047ef7" | |||
23 | 23 | ||
24 | SRC_URI = "http://www.hboehm.info/gc/gc_source/gc-${PV}.tar.gz \ | 24 | SRC_URI = "http://www.hboehm.info/gc/gc_source/gc-${PV}.tar.gz \ |
25 | file://0001-fix-build-with-musl.patch \ | 25 | file://0001-fix-build-with-musl.patch \ |
26 | file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \ | ||
26 | " | 27 | " |
27 | 28 | ||
28 | SRC_URI[md5sum] = "12c05fd2811d989341d8c6d81f66af87" | 29 | SRC_URI[md5sum] = "12c05fd2811d989341d8c6d81f66af87" |