summaryrefslogtreecommitdiff
path: root/package/libgcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/libgcc/Makefile')
-rw-r--r--package/libgcc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/libgcc/Makefile b/package/libgcc/Makefile
index 003cd9783..9c024504c 100644
--- a/package/libgcc/Makefile
+++ b/package/libgcc/Makefile
@@ -11,7 +11,7 @@ PKG_SECTION:= libs
NO_DISTFILES:= 1
-PKG_ARCH_DEPENDS:= !sh !avr32
+PKG_ARCH_DEPENDS:= !avr32
include ${TOPDIR}/mk/package.mk
@@ -24,8 +24,12 @@ INSTALL_STYLE:= manual
do-install:
ifeq ($(ADK_NATIVE),)
${INSTALL_DIR} ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
+ifeq ($(ADK_LINUX_SH),y)
+ ${CP} ${STAGING_TARGET_DIR}/lib/!m1/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
+else
${CP} ${STAGING_TARGET_DIR}/$(ADK_TARGET_LIBC_PATH)/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
endif
+endif
ifeq ($(ADK_TARGET_MULTILIB_X86_32),y)
${INSTALL_DIR} ${IDIR_LIBGCC}/lib32
${CP} ${STAGING_TARGET_DIR_32}/lib/libgcc*.so* ${IDIR_LIBGCC}/lib32