libgpg-error: fix riscv64
[openadk.git] / package / libstdcxx / Makefile
blobc3b3b4eb7bd1861dfe44e5246d135f6647b669f0
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
5 include ${ADK_TOPDIR}/toolchain/gcc/Makefile.inc
7 PKG_NAME:= libstdcxx
8 PKG_DESCR:= c++ support library
9 PKG_SECTION:= base/libs
10 PKG_OPTS:= noremove
11 NO_DISTFILES:= 1
13 include ${ADK_TOPDIR}/mk/package.mk
15 $(eval $(call PKG_template,LIBSTDCXX,libstdcxx,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
17 CONFIG_STYLE:= manual
18 BUILD_STYLE:= manual
19 INSTALL_STYLE:= manual
21 do-install:
22 ifeq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS_ONLY)$(ADK_TARGET_ARCH_METAG),)
23 ${INSTALL_DIR} ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
24 ifeq ($(ADK_TARGET_ARCH_SH),y)
25 ifeq ($(ADK_TARGET_CPU_SH_SH3),y)
26 $(CP) ${STAGING_TARGET_DIR}/usr/${ADK_TARGET_LIBC_PATH}/!m3/libstdc++.so* \
27 ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
28 endif
29 ifeq ($(ADK_TARGET_CPU_SH_SH4),y)
30 $(CP) ${STAGING_TARGET_DIR}/usr/${ADK_TARGET_LIBC_PATH}/!m4/libstdc++.so* \
31 ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
32 endif
33 else
34 $(CP) ${STAGING_TARGET_DIR}/usr/${ADK_TARGET_LIBC_PATH}/libstdc++.so* \
35 ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
36 -@rm ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}/libstdc++.so.*-gdb.py 2>/dev/null
37 endif
38 endif
40 include ${ADK_TOPDIR}/mk/pkg-bottom.mk