* [Buildroot] [PATCH 1/1] package/mpdecimal: fix build without threads
@ 2022-02-05 14:50 Fabrice Fontaine
2022-02-13 15:21 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-02-05 14:50 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine, Thomas Petazzoni
Fix the following build failure raised since bump to version 2.5.1 in
commit 995c093d6a3e8042110d6a8d96fdc7ad65a557c4:
/home/peko/autobuild/instance-0/output-1/per-package/mpdecimal/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: cannot find -lpthread
Fixes:
- http://autobuild.buildroot.org/results/b20c090f2ac5ea6d1c761820763037b87bde137a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/mpdecimal/mpdecimal.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/mpdecimal/mpdecimal.mk b/package/mpdecimal/mpdecimal.mk
index 25c12c08b1..aa322df340 100644
--- a/package/mpdecimal/mpdecimal.mk
+++ b/package/mpdecimal/mpdecimal.mk
@@ -11,6 +11,9 @@ MPDECIMAL_LICENSE = BSD-2-Clause
MPDECIMAL_LICENSE_FILES = LICENSE.txt
MPDECIMAL_CONF_OPTS = LD="$(TARGET_CC)"
+# threads are only needed for tests
+MPDECIMAL_MAKE_OPTS = MPD_PTHREAD=
+
# On i386, by default, mpdecimal tries to uses <fenv.h> which is not
# available in musl/uclibc. So in this case, we tell mpdecimal to use
# the generic 32 bits code, which is anyway the one used on ARM,
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/mpdecimal: fix build without threads
2022-02-05 14:50 [Buildroot] [PATCH 1/1] package/mpdecimal: fix build without threads Fabrice Fontaine
@ 2022-02-13 15:21 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-02-13 15:21 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot; +Cc: Thomas Petazzoni
On 05/02/2022 15:50, Fabrice Fontaine wrote:
> Fix the following build failure raised since bump to version 2.5.1 in
> commit 995c093d6a3e8042110d6a8d96fdc7ad65a557c4:
>
> /home/peko/autobuild/instance-0/output-1/per-package/mpdecimal/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: cannot find -lpthread
>
> Fixes:
> - http://autobuild.buildroot.org/results/b20c090f2ac5ea6d1c761820763037b87bde137a
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> package/mpdecimal/mpdecimal.mk | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/package/mpdecimal/mpdecimal.mk b/package/mpdecimal/mpdecimal.mk
> index 25c12c08b1..aa322df340 100644
> --- a/package/mpdecimal/mpdecimal.mk
> +++ b/package/mpdecimal/mpdecimal.mk
> @@ -11,6 +11,9 @@ MPDECIMAL_LICENSE = BSD-2-Clause
> MPDECIMAL_LICENSE_FILES = LICENSE.txt
> MPDECIMAL_CONF_OPTS = LD="$(TARGET_CC)"
>
> +# threads are only needed for tests
> +MPDECIMAL_MAKE_OPTS = MPD_PTHREAD=
> +
> # On i386, by default, mpdecimal tries to uses <fenv.h> which is not
> # available in musl/uclibc. So in this case, we tell mpdecimal to use
> # the generic 32 bits code, which is anyway the one used on ARM,
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-13 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-05 14:50 [Buildroot] [PATCH 1/1] package/mpdecimal: fix build without threads Fabrice Fontaine
2022-02-13 15:21 ` Arnout Vandecappelle
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.