* [Buildroot] [PATCH 1/1] package/kf5-modemmanager-qt: link with libatomic when needed
@ 2019-03-17 21:10 Fabrice Fontaine
2019-03-18 21:08 ` Thomas Petazzoni
2019-03-27 14:56 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-03-17 21:10 UTC (permalink / raw)
To: buildroot
On some architectures, atomic binutils are provided by the libatomic
library from gcc. Linking with libatomic is therefore necessary,
otherwise the build fails with:
sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line
This is often for example the case on sparcv8 32 bit.
Fixes:
- http://autobuild.buildroot.org/results/b941a3deaa57cac79f1686d47ca6ababf2f0d5e4
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk b/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk
index 9bbeeaa760..20fbc102c6 100644
--- a/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk
+++ b/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk
@@ -13,4 +13,9 @@ KF5_MODEMMANAGER_QT_LICENSE_FILE = COPYING.LIB
KF5_MODEMMANAGER_QT_DEPENDENCIES = kf5-extra-cmake-modules modem-manager qt5base
KF5_MODEMMANAGER_QT_INSTALL_STAGING = YES
+# Uses __atomic_fetch_add_4
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+KF5_MODEMMANAGER_QT_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
+endif
+
$(eval $(cmake-package))
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/kf5-modemmanager-qt: link with libatomic when needed
2019-03-17 21:10 [Buildroot] [PATCH 1/1] package/kf5-modemmanager-qt: link with libatomic when needed Fabrice Fontaine
@ 2019-03-18 21:08 ` Thomas Petazzoni
2019-03-27 14:56 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-03-18 21:08 UTC (permalink / raw)
To: buildroot
On Sun, 17 Mar 2019 22:10:16 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> On some architectures, atomic binutils are provided by the libatomic
> library from gcc. Linking with libatomic is therefore necessary,
> otherwise the build fails with:
>
> sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line
>
> This is often for example the case on sparcv8 32 bit.
>
> Fixes:
> - http://autobuild.buildroot.org/results/b941a3deaa57cac79f1686d47ca6ababf2f0d5e4
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk | 5 +++++
> 1 file changed, 5 insertions(+)
Applied to master, thanks. As usual, I would prefer an upstreamable
fix, though.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/kf5-modemmanager-qt: link with libatomic when needed
2019-03-17 21:10 [Buildroot] [PATCH 1/1] package/kf5-modemmanager-qt: link with libatomic when needed Fabrice Fontaine
2019-03-18 21:08 ` Thomas Petazzoni
@ 2019-03-27 14:56 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-03-27 14:56 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> On some architectures, atomic binutils are provided by the libatomic
> library from gcc. Linking with libatomic is therefore necessary,
> otherwise the build fails with:
> sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line
> This is often for example the case on sparcv8 32 bit.
> Fixes:
> - http://autobuild.buildroot.org/results/b941a3deaa57cac79f1686d47ca6ababf2f0d5e4
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2018.11.x and 2019.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-27 14:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-17 21:10 [Buildroot] [PATCH 1/1] package/kf5-modemmanager-qt: link with libatomic when needed Fabrice Fontaine
2019-03-18 21:08 ` Thomas Petazzoni
2019-03-27 14:56 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox