Explorar o código

toolchain: Add libatomic when using external toolchain

Otherwise libatomic cannot be used in conjunction with external toolchains.

Signed-off-by: Helmut Schaa <[email protected]>

SVN-Revision: 43998
John Crispin %!s(int64=11) %!d(string=hai) anos
pai
achega
09a08fb9e6
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      package/libs/toolchain/Makefile

+ 9 - 0
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` ; \