summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2018-01-07 18:07:38 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2018-01-07 21:25:41 +0100
commita27ef82d51591405e20ab57779fe9dffdb66e42b (patch)
tree5cb60b45bb1a21f0348d1be5528d32865641410b
parenta0b3d592ff5b8cc57fb101c6b549b6762b4bb089 (diff)
downloadbuildroot-a27ef82d51591405e20ab57779fe9dffdb66e42b.tar.gz
buildroot-a27ef82d51591405e20ab57779fe9dffdb66e42b.zip
package/libdrm: adjust patch switching to pkg-config for libatomic_ops
In commit fa6c7d165971e1f70b9ac94bae9cd1fd9180c072 ("libdrm: fix libatomic_ops linking"), a patch was added to switch to PKG_CHECK_MODULES() to detect libatomic_ops instead of AC_CHECK_HEADER. However, as explained in https://autotools.io/pkgconfig/pkg_check_modules.html: "In contrast with almost all of the original macros, though, the default action-if-not-found will end the execution with an error for not having found the dependency." This makes the configure script bail out when libatomic_ops is not available, which is not what we want in libdrm's configure script. This commit adjusts the PKG_CHECK_MODULES() call to avoid failing. Fixes: http://autobuild.buildroot.net/results/cea/cea777dc997f86c1122c8b818d264215a0e77e5a/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libdrm/0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/libdrm/0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch b/package/libdrm/0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch
index 20bb0a36d3..0fbe77ef7c 100644
--- a/package/libdrm/0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch
+++ b/package/libdrm/0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch
@@ -23,6 +23,8 @@ and we don't link against it.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+[Bernd: PKG_CHECK_MODULES should not fail when libatomic_ops is missing]
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
amdgpu/Makefile.am | 2 +-
configure.ac | 2 +-
@@ -57,7 +59,7 @@ index 35378b33..501d0871 100644
if test "x$drm_cv_atomic_primitives" = "xnone"; then
- AC_CHECK_HEADER([atomic_ops.h], drm_cv_atomic_primitives="libatomic-ops")
-+ PKG_CHECK_MODULES(ATOMIC_OPS, [atomic_ops], drm_cv_atomic_primitives="libatomic-ops")
++ PKG_CHECK_MODULES(ATOMIC_OPS, [atomic_ops], drm_cv_atomic_primitives="libatomic-ops", true)
fi
# atomic functions defined in <atomic.h> & libc on Solaris
OpenPOWER on IntegriCloud