take config.guess from binutils instead of gcc

binutils comes before gcc and also has a newer config.guess.
This commit is contained in:
Mark Brand 2011-11-27 22:13:09 +01:00
parent 0b68635bc4
commit ff98a17d4f
2 changed files with 8 additions and 4 deletions

View File

@ -21,8 +21,15 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# install config.guess for general use
$(INSTALL) -d '$(PREFIX)/bin'
$(INSTALL) -m755 '$(1)/config.guess' '$(PREFIX)/bin/'
$(INSTALL) -m755 '$(1)/config.sub' '$(PREFIX)/bin/'
# Cannot use BUILD which was defined before config.guess existed.
cd '$(1)' && ./configure \
--target='$(TARGET)' \
--build="`config.guess`" \
--prefix='$(PREFIX)' \
--with-gcc \
--with-gnu-ld \

View File

@ -29,14 +29,11 @@ define $(PKG)_BUILD
cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,gcc-mpfr)
mv '$(1)/$(gcc-mpfr_SUBDIR)' '$(1)/mpfr'
# install config.guess for general use
$(INSTALL) -m755 '$(1)/config.guess' '$(PREFIX)/bin'
$(INSTALL) -m755 '$(1)/config.sub' '$(PREFIX)/bin'
# build GCC and support libraries
mkdir '$(1).build'
cd '$(1).build' && '$(1)/configure' \
--target='$(TARGET)' \
--build='$(BUILD)' \
--prefix='$(PREFIX)' \
--libdir='$(PREFIX)/lib' \
--enable-languages='c,c++,objc,fortran' \