* [Buildroot] [PATCH v1] package/libiio: fix compile without thread support
@ 2021-09-16 17:37 Peter Seiderer
2021-09-18 12:23 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2021-09-16 17:37 UTC (permalink / raw)
To: buildroot; +Cc: Paul Cercueil
- fix compile without thread support (add configure option
'-DNO_THREADS=ON' as requested)
Fixes:
- http://autobuild.buildroot.net/results/2cca5952e7d677cd0d5fa97aa1a7bf3e722df3a2
CMake Error at CMakeLists.txt:409 (message):
Unable to find pthread dependency.
If you want to disable multi-threading support, set NO_THREADS=ON.
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/libiio/libiio.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
index 4ce933a0cd..f706298c22 100644
--- a/package/libiio/libiio.mk
+++ b/package/libiio/libiio.mk
@@ -17,6 +17,12 @@ LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \
-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
-DWITH_DOC=OFF
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+LIBIIO_CONF_OPTS += -DNO_THREADS=OFF
+else
+LIBIIO_CONF_OPTS += -DNO_THREADS=ON
+endif
+
ifeq ($(BR2_PACKAGE_LIBIIO_XML_BACKEND),y)
LIBIIO_DEPENDENCIES += libxml2
LIBIIO_CONF_OPTS += -DWITH_XML_BACKEND=ON
--
2.33.0
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH v1] package/libiio: fix compile without thread support
2021-09-16 17:37 [Buildroot] [PATCH v1] package/libiio: fix compile without thread support Peter Seiderer
@ 2021-09-18 12:23 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-09-18 12:23 UTC (permalink / raw)
To: Peter Seiderer; +Cc: Paul Cercueil, buildroot
Peter, All,
On 2021-09-16 19:37 +0200, Peter Seiderer spake thusly:
> - fix compile without thread support (add configure option
> '-DNO_THREADS=ON' as requested)
>
> Fixes:
>
> - http://autobuild.buildroot.net/results/2cca5952e7d677cd0d5fa97aa1a7bf3e722df3a2
>
> CMake Error at CMakeLists.txt:409 (message):
> Unable to find pthread dependency.
>
> If you want to disable multi-threading support, set NO_THREADS=ON.
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/libiio/libiio.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
> index 4ce933a0cd..f706298c22 100644
> --- a/package/libiio/libiio.mk
> +++ b/package/libiio/libiio.mk
> @@ -17,6 +17,12 @@ LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \
> -DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
> -DWITH_DOC=OFF
>
> +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
> +LIBIIO_CONF_OPTS += -DNO_THREADS=OFF
> +else
> +LIBIIO_CONF_OPTS += -DNO_THREADS=ON
> +endif
> +
> ifeq ($(BR2_PACKAGE_LIBIIO_XML_BACKEND),y)
> LIBIIO_DEPENDENCIES += libxml2
> LIBIIO_CONF_OPTS += -DWITH_XML_BACKEND=ON
> --
> 2.33.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@lists.buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-18 12:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 17:37 [Buildroot] [PATCH v1] package/libiio: fix compile without thread support Peter Seiderer
2021-09-18 12:23 ` Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.