Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] package/exiv2: fix pthread detection
@ 2017-06-04  8:27 Bernd Kuhls
  2017-06-05  9:52 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2017-06-04  8:27 UTC (permalink / raw)
  To: buildroot

This commit fixes an error during configure:

-- Check if compiler accepts -pthread
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the
 following cache variables appropriately:
   THREADS_PTHREAD_ARG (advanced)

Patch ported from librtlsdr:
https://git.busybox.net/buildroot/commit/?id=4c6eace6f756d15ae9639a503c9245d1e7fb12a9

Fixes
http://autobuild.buildroot.net/results/0f9/0f985993a0c0076f027cfe25bb13d6b85c644c0d/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: added more comments in commit message and exiv2.mk (Thomas)

 package/exiv2/exiv2.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/exiv2/exiv2.mk b/package/exiv2/exiv2.mk
index f56e86122..bdd40f7f4 100644
--- a/package/exiv2/exiv2.mk
+++ b/package/exiv2/exiv2.mk
@@ -11,6 +11,10 @@ EXIV2_INSTALL_STAGING = YES
 
 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_BUILD_SAMPLES=OFF
 
+# The following CMake variable disables a TRY_RUN call in the -pthread
+# test which is not allowed when cross-compiling.
+EXIV2_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
+
 ifeq ($(BR2_PACKAGE_EXIV2_LENSDATA),)
 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_LENSDATA=OFF
 endif
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/exiv2: fix pthread detection
  2017-06-04  8:27 [Buildroot] [PATCH v2 1/1] package/exiv2: fix pthread detection Bernd Kuhls
@ 2017-06-05  9:52 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-06-05  9:52 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun,  4 Jun 2017 10:27:14 +0200, Bernd Kuhls wrote:
> This commit fixes an error during configure:
> 
> -- Check if compiler accepts -pthread
> CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the
>  following cache variables appropriately:
>    THREADS_PTHREAD_ARG (advanced)
> 
> Patch ported from librtlsdr:
> https://git.busybox.net/buildroot/commit/?id=4c6eace6f756d15ae9639a503c9245d1e7fb12a9
> 
> Fixes
> http://autobuild.buildroot.net/results/0f9/0f985993a0c0076f027cfe25bb13d6b85c644c0d/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: added more comments in commit message and exiv2.mk (Thomas)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-05  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-04  8:27 [Buildroot] [PATCH v2 1/1] package/exiv2: fix pthread detection Bernd Kuhls
2017-06-05  9:52 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox