gcc-mips/Makefile |
7 | 7 | include $(TOPDIR)/rules.mk |
8 | 8 | PKG_NAME:=gcc |
9 | 9 | #PKG_VERSION:=$(strip $(subst ",, $(CONFIG_GCC_VERSION)))#")) |
10 | | PKG_VERSION:=4.5.2 |
| 10 | PKG_VERSION:=4.6.2 |
11 | 11 | PKG_RELEASE:=1 |
12 | 12 | PATCH_DIR=$(TOPDIR)/toolchain/gcc/patches/$(PKG_VERSION) |
13 | 13 | PKG_SOURCE_URL:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(PKG_VERSION) \ |
... | ... | |
15 | 15 | ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(PKG_VERSION) |
16 | 16 | |
17 | 17 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
18 | | PKG_MD5SUM:=d6559145853fbaaa0fd7556ed93bce9a |
| 18 | PKG_MD5SUM:=2b7887846f8e5ac1ca58fe4dfaabf5a6 |
19 | 19 | PKG_INSTALL:=1 |
20 | 20 | PKG_FIXUP:=libtool |
21 | 21 | |
... | ... | |
36 | 36 | SECTION:=devel |
37 | 37 | CATEGORY:=Development |
38 | 38 | TITLE:=gcc-mips |
39 | | DEPENDS:=+mpfr +binutils +libmpc @BROKEN |
| 39 | DEPENDS:=+mpfr +binutils +libmpc |
40 | 40 | endef |
41 | 41 | |
42 | 42 | define Package/gcc-mips/description |
... | ... | |
72 | 72 | --with-gmp=$(STAGING_DIR)/usr \ |
73 | 73 | --with-mpc=$(STAGING_DIR)/usr \ |
74 | 74 | --with-mpfr=$(STAGING_DIR)/usr \ |
| 75 | --disable-libstdcxx-pch \ |
75 | 76 | --prefix=/usr \ |
76 | 77 | $(EXTRA_TARGET) \ |
77 | 78 | $(SOFT_FLOAT_CONFIG_OPTION) \ |
... | ... | |
87 | 88 | define Package/gcc-mips/install |
88 | 89 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) |
89 | 90 | cp -ar $(PKG_INSTALL_DIR)/usr/{include,libexec} $(1)/usr |
90 | | cp -a $(PKG_INSTALL_DIR)/usr/bin/{$(REAL_GNU_TARGET_NAME)-{g++,gcc},gccbug,cpp,gcov} $(1)/usr/bin |
| 91 | cp -a $(PKG_INSTALL_DIR)/usr/bin/{$(REAL_GNU_TARGET_NAME)-{g++,gcc},cpp,gcov} $(1)/usr/bin |
91 | 92 | ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/c++ |
92 | 93 | ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/g++ |
93 | 94 | ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++ |
... | ... | |
102 | 103 | define Package/gcc-mips/postinst |
103 | 104 | #!/bin/sh |
104 | 105 | #we use some files from host's openwrt toolchain for gcc-mips package, |
105 | | #and the host's gcc version (linaro) is now 4.5.4. |
106 | | #this will be fixed when we catch up with openwrt upstream, |
| 106 | #and the host's gcc version (linaro) is now 4.6.3. |
107 | 107 | #workaround for now |
108 | | for i in $$(find $${IPKG_INSTROOT}/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.5.4 -type f); do |
109 | | ln -s ../4.5.4/$${i##*/} $${i/4.5.4/4.5.2} |
| 108 | for i in $$(find $${IPKG_INSTROOT}/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.6.3 -type f); do |
| 109 | ln -s ../4.6.3/$${i##*/} $${i/4.6.3/4.6.2} |
110 | 110 | done |
111 | 111 | endef |
112 | 112 | |