mirror of https://git.wownero.com/dsc/mxe.git
take config.guess from binutils instead of gcc
binutils comes before gcc and also has a newer config.guess.
This commit is contained in:
parent
0b68635bc4
commit
ff98a17d4f
|
@ -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 \
|
||||
|
|
|
@ -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' \
|
||||
|
|
Loading…
Reference in New Issue