[Buildroot] [PATCH] package/librtlsdr: fix build failure

Baruch Siach baruch at tkos.co.il
Sun Nov 23 10:48:45 UTC 2014


Hi Samuel,

On Sun, Nov 23, 2014 at 11:40:33AM +0100, Samuel Martin wrote:
> Disable run test for pthread detection.
> 
> Fixes:
>   http://autobuild.buildroot.org/results/26c/26cb8c2e5f867d49451f61304bf0a1a6f7b825d9/
> 
> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
> ---
>  package/librtlsdr/librtlsdr.mk | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/package/librtlsdr/librtlsdr.mk b/package/librtlsdr/librtlsdr.mk
> index 2c5cf1f..9f27aad 100644
> --- a/package/librtlsdr/librtlsdr.mk
> +++ b/package/librtlsdr/librtlsdr.mk
> @@ -19,4 +19,8 @@ ifeq ($(BR2_PACKAGE_LIBRTLSDR_DETACH_DRIVER),y)
>  LIBRTLSDR_CONF_OPTS += -DDETACH_KERNEL_DRIVER=1
>  endif
>  
> +# Prevent from configure failure because of TRY_RUN call (of course totally not
> +# applicable in the cross-compilation context).
> +LIBRTLSDR_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF

Does this disable use of pthreads? If so I'm not sure this is the right fix. 
The build failure seems to only happen when BR2_PREFER_STATIC_LIB is enabled. 
See http://autobuild.buildroot.net/?reason=librtlsdr-v0.5.3.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list