summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/cc-tool/cc-tool.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/cc-tool/cc-tool.mk b/package/cc-tool/cc-tool.mk
index b9209ced3d..37ac57e497 100644
--- a/package/cc-tool/cc-tool.mk
+++ b/package/cc-tool/cc-tool.mk
@@ -23,4 +23,8 @@ ifeq ($(BR2_STATIC_LIBS),y)
CC_TOOL_CONF_ENV += LIBS="-lpthread"
endif
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+CC_TOOL_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -latomic"
+endif
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud