From 27406b931af52dd138e1f0bbd809df73ce1a9c2f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 4 Mar 2010 19:11:16 +0100 Subject: fix gcc cross-compile --- package/gcc/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'package/gcc/Makefile') diff --git a/package/gcc/Makefile b/package/gcc/Makefile index 20e99fff8..36aa0f94c 100644 --- a/package/gcc/Makefile +++ b/package/gcc/Makefile @@ -10,6 +10,19 @@ PKG_OPTS:= noremove PKG_DEPENDS:= libgmp mpfr PKG_BUILDDEP+= gmp mpfr +ifeq ($(ADK_TARGET_LIB_UCLIBC),y) +PKG_DEPENDS:= uclibc-dev +PKG_BUILDDEP+= uclibc +endif +ifeq ($(ADK_TARGET_LIB_EGLIBC),y) +PKG_DEPENDS:= eglibc-dev +PKG_BUILDDEP+= eglibc +endif +ifeq ($(ADK_TARGET_LIB_GLIBC),y) +PKG_DEPENDS:= glibc-dev +PKG_BUILDDEP+= glibc +endif + PKG_HOST_DEPENDS:= !freebsd include ${TOPDIR}/mk/package.mk -- cgit v1.2.3 From 098558dc60eb34e655d614f7dab32cca446771a3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 5 Mar 2010 18:21:03 +0100 Subject: fix gcc package on MIPS64 --- package/gcc/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'package/gcc/Makefile') diff --git a/package/gcc/Makefile b/package/gcc/Makefile index 36aa0f94c..3c6e0b701 100644 --- a/package/gcc/Makefile +++ b/package/gcc/Makefile @@ -27,10 +27,15 @@ PKG_HOST_DEPENDS:= !freebsd include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,GCC,gcc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +$(eval $(call PKG_template,GCC,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) TCFLAGS:= '' TCPPFLAGS:= '' + +ifeq ($(ADK_LINUX_64),y) +CONFIGURE_ARGS+= --with-abi=64 +endif + CONFIGURE_ARGS+= --enable-languages=c,c++ \ --host=$(REAL_GNU_TARGET_NAME) \ --target=$(REAL_GNU_TARGET_NAME) \ @@ -53,6 +58,7 @@ post-install: ${INSTALL_BIN} ${WRKINST}/usr/bin/gcc ${IDIR_GCC}/usr/bin/ ${INSTALL_BIN} ${WRKINST}/usr/bin/g++ ${IDIR_GCC}/usr/bin/ 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++/ -- cgit v1.2.3