diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-29 16:34:23 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-29 16:34:23 +0200 |
commit | 1298200f89501407736f0657de5d96a3e7a453b0 (patch) | |
tree | 86256c988e8a7c5391a7cde3f0a79164fdefc62f /package/gcc | |
parent | 57d1691987a1f85375b9de5ab21b7c5c8e11afc2 (diff) |
enable cross-compile of gcc
- fix asm issue for mips mpfr (reported upstream)
- enable gcc build (not tested, yet, but at least compiles)
Diffstat (limited to 'package/gcc')
-rw-r--r-- | package/gcc/Config.in | 2 | ||||
-rw-r--r-- | package/gcc/Makefile | 16 |
2 files changed, 14 insertions, 4 deletions
diff --git a/package/gcc/Config.in b/package/gcc/Config.in index 2d32d4491..be3446b96 100644 --- a/package/gcc/Config.in +++ b/package/gcc/Config.in @@ -1,5 +1,5 @@ config ADK_PACKAGE_GCC - prompt "gcc.......................... GNU Compiler Collection" + prompt "gcc............................... GNU Compiler Collection" tristate default n select ADK_PACKAGE_LIBGMP diff --git a/package/gcc/Makefile b/package/gcc/Makefile index 0f0407001..d2a05cbdb 100644 --- a/package/gcc/Makefile +++ b/package/gcc/Makefile @@ -9,22 +9,32 @@ include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,GCC,gcc,${PKG_VERSION}-${PKG_RELEASE})) +TCFLAGS:= '' +TCPPFLAGS:= '' CONFIGURE_STYLE= gnu +ifeq ($(ADK_LINUX_MIPS64_LEMOTE),y) +CONFIGURE_ARGS+= --with-abi=64 +endif CONFIGURE_ARGS+= --enable-languages=c \ - --enable-shared \ + --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/lib ${INSTALL_DIR} ${IDIR_GCC}/usr/bin ${INSTALL_BIN} ${WRKINST}/usr/bin/gcc ${IDIR_GCC}/usr/bin/ + ${INSTALL_BIN} ${WRKINST}/usr/bin/ccp ${IDIR_GCC}/usr/bin/ include ${TOPDIR}/mk/pkg-bottom.mk |