* [Buildroot] [git commit] package/i2pd: fix static build with atomic
@ 2019-12-29 9:59 Yann E. MORIN
0 siblings, 0 replies; only message in thread
From: Yann E. MORIN @ 2019-12-29 9:59 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=ea0ae0e3336d84d7073a10ef37d73c9ed0a99bbb
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Use HAVE_CXX_ATOMICS_WITHOUT_LIB and HAVE_CXX_ATOMICS64_WITHOUT_LIB
variables to tell i2pd to check for atomic library and add it in
$(REQUIRED_LIBRARIES) if needed
Fixes:
- http://autobuild.buildroot.org/results/dfffe21fab65b3fc81f449004a6771fd00efbc57
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
package/i2pd/i2pd.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/i2pd/i2pd.mk b/package/i2pd/i2pd.mk
index de975d66a4..a064057f1f 100644
--- a/package/i2pd/i2pd.mk
+++ b/package/i2pd/i2pd.mk
@@ -22,7 +22,9 @@ I2PD_CONF_OPTS += -DWITH_GUI=OFF
I2PD_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
-I2PD_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
+I2PD_CONF_OPTS += \
+ -DHAVE_CXX_ATOMICS_WITHOUT_LIB=OFF \
+ -DHAVE_CXX_ATOMICS64_WITHOUT_LIB=OFF
endif
ifeq ($(BR2_STATIC_LIBS),y)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-29 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-29 9:59 [Buildroot] [git commit] package/i2pd: fix static build with atomic 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.