Skip to contentSkip to conversation

package/exiv2: fix pthread detection

PATCH New Bernd Kuhls 2 participants 2 messages Jun 4, 2017 – Jun 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/exiv2: fix pthread detection

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/

---
v2: added more comments in commit message and exiv2.mk (Thomas)

 package/exiv2/exiv2.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/exiv2/exiv2.mk +4 -0
index f56e86122..bdd40f7f4 100644
@@ -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
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 package/exiv2: fix pthread detection

Hello,

Quoted 10 lines · Bernd Kuhls

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

Quoted 6 lines

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

---
v2: added more comments in commit message and exiv2.mk (Thomas)

Applied to master, thanks.

Thomas

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