summaryrefslogtreecommitdiff
path: root/package/gcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/gcc/Makefile')
-rw-r--r--package/gcc/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index e1acd7309..d1252396f 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -14,21 +14,36 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,GCC,gcc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TCFLAGS:= ''
+TCPPFLAGS:= ''
CONFIGURE_STYLE= gnu
+ifeq ($(ADK_LINUX_MIPS64_LEMOTE),y)
+CONFIGURE_ARGS+= --with-abi=64
+endif
CONFIGURE_ARGS+= --enable-languages=c \
- --enable-shared \
+ --libexecdir=/usr/lib \
+ --host=$(REAL_GNU_TARGET_NAME) \
+ --target=$(REAL_GNU_TARGET_NAME) \
--disable-__cxa_atexit \
+ --without-headers \
--with-gnu-ld \
--disable-libssp \
--disable-nls \
--disable-libmudflap \
--disable-libgomp \
--disable-multilib
-BUILD_STYLE= auto
-INSTALL_STYLE= auto
+BUILD_STYLE:= auto
+ALL_TARGET:= all-gcc all-target-libgcc
+INSTALL_STYLE:= auto
+INSTALL_TARGET:= install-gcc install-target-libgcc
post-install:
- ${INSTALL_DIR} ${IDIR_GCC}/usr/bin
+ ${INSTALL_DIR} ${IDIR_GCC}/usr/lib/gcc ${IDIR_GCC}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/gcc ${IDIR_GCC}/usr/bin/
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/cpp ${IDIR_GCC}/usr/bin/
+ ${CP} ${WRKINST}/usr/lib/gcc/* ${IDIR_GCC}/usr/lib/gcc/
+ ${CP} ${STAGING_DIR}/lib/crt* ${IDIR_GCC}/usr/lib
+ rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/include-fixed
+ rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/install-tools
include ${TOPDIR}/mk/pkg-bottom.mk