From: John Crispin Date: Sat, 17 Jan 2015 13:58:03 +0000 (+0000) Subject: toolchain: Add libatomic when using external toolchain X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=09a08fb9e6bdeee22f62f043384b638630c4ff1a;p=librecmc%2Flibrecmc.git toolchain: Add libatomic when using external toolchain Otherwise libatomic cannot be used in conjunction with external toolchains. Signed-off-by: Helmut Schaa SVN-Revision: 43998 --- diff --git a/package/libs/toolchain/Makefile b/package/libs/toolchain/Makefile index 1a75e90c30..42b9935148 100644 --- a/package/libs/toolchain/Makefile +++ b/package/libs/toolchain/Makefile @@ -604,6 +604,15 @@ else exit 0 endef + define Package/libatomic/install + for file in $(call qstrip,$(CONFIG_LIBATOMIC_FILE_SPEC)); do \ + dir=`dirname $$$$file` ; \ + $(INSTALL_DIR) $(1)/$$$$dir ; \ + $(CP) $(call qstrip,$(CONFIG_LIBATOMIC_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \ + done ; \ + exit 0 + endef + define Package/ldd/install for file in $(call qstrip,$(CONFIG_LDD_FILE_SPEC)); do \ dir=`dirname $$$$file` ; \