summaryrefslogtreecommitdiff
path: root/package/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-12 05:54:51 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-12 05:54:51 +0200
commitb3b93b5d6c43789bbd0d4bc5bac2900609ca4087 (patch)
tree716f0b733f29904cb2d84bd1108f58c7b6101b05 /package/gcc/Makefile
parent4239d26536021619954bca5b67fb03bd48b24c15 (diff)
respect choosen ABI
Diffstat (limited to 'package/gcc/Makefile')
-rw-r--r--package/gcc/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 6158d094f..8a6e267c8 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -20,8 +20,11 @@ TARGET_CPPFLAGS:= ''
TARGET_CFLAGS:= ''
TARGET_CXXFLAGS:= $(filter-out -fstack-protector,$(TARGET_CXXFLAGS))
-ifeq ($(ADK_LINUX_64),y)
-CONFIGURE_ARGS+= --with-abi=64
+#ifeq ($(ADK_LINUX_64),y)
+#CONFIGURE_ARGS+= --with-abi=64
+#endif
+ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
+CONFIGURE_ARGS+= --with-abi=$(ADK_TARGET_ABI)
endif
CONFIGURE_ARGS+= --enable-languages=c,c++ \
@@ -51,7 +54,6 @@ post-install:
cd ${IDIR_GCC}/usr/bin/ && ln -sf g++ c++
cd ${IDIR_GCC}/usr/bin/ && ln -sf gcc cc
${INSTALL_BIN} ${WRKINST}/usr/bin/cpp ${IDIR_GCC}/usr/bin/
- ${CP} ${WRKINST}/usr/lib/libstdc++*so* ${IDIR_GCC}/usr/lib/
${CP} ${WRKINST}/usr/include/c++/* ${IDIR_GCC}/usr/include/c++/
cd ${IDIR_GCC}/lib && ln -sf ../usr/bin/cpp .
${CP} ${WRKINST}/usr/lib/gcc/* ${IDIR_GCC}/usr/lib/gcc/