summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-01-15 11:49:20 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-01-16 10:34:15 +0100
commit47515f918271e2180294b69b33e42d8aa96f13a4 (patch)
treefa1e6a419a66e2b1f64a18957d86bb59df832fea
parentddf61384c4d88c5d534ff862da2129d630749746 (diff)
downloadptxdist-47515f918271e2180294b69b33e42d8aa96f13a4.tar.gz
ptxdist-47515f918271e2180294b69b33e42d8aa96f13a4.tar.xz
gcclibs: add option for libatomic
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/gcclibs.in7
-rw-r--r--rules/gcclibs.make4
2 files changed, 11 insertions, 0 deletions
diff --git a/rules/gcclibs.in b/rules/gcclibs.in
index 38f58fbcb..37725089b 100644
--- a/rules/gcclibs.in
+++ b/rules/gcclibs.in
@@ -22,6 +22,13 @@ config GCCLIBS_CXX
Installs the GNU Standard C++ Library
libstdc++
+config GCCLIBS_ATOMIC
+ bool "libatomic"
+ select GCCLIBS
+ select LIBC_PTHREAD
+ help
+ Installs the libatomic Library
+
config GCCLIBS_GCJ
bool "libgcj"
diff --git a/rules/gcclibs.make b/rules/gcclibs.make
index 1e76d5546..c550ef3e1 100644
--- a/rules/gcclibs.make
+++ b/rules/gcclibs.make
@@ -45,6 +45,10 @@ ifdef PTXCONF_GCCLIBS_CXX
@$(call install_copy_toolchain_lib, gcclibs, libstdc++.so)
endif
+ifdef PTXCONF_GCCLIBS_ATOMIC
+ @$(call install_copy_toolchain_lib, gcclibs, libatomic.so)
+endif
+
ifdef PTXCONF_GCCLIBS_GCJ
@$(call install_copy_toolchain_lib, gcclibs, libgcj.so)
endif