mingw-w64-binutils: improve installation dirs.
This commit is contained in:
parent
b6a707c0ff
commit
8d1ed89d87
1 changed files with 13 additions and 13 deletions
|
@ -35,22 +35,22 @@ wrksrc=binutils-$version
|
||||||
|
|
||||||
_mingwprefix=/opt
|
_mingwprefix=/opt
|
||||||
|
|
||||||
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
||||||
_mingwtriplet="${xbps_machine}-w64-mingw32"
|
|
||||||
_target_args="--enable-targets=${_mingwtriplet},i686-w64-mingw32"
|
|
||||||
_multilib_args="--enable-multilib --enable-64-bit-bfd"
|
|
||||||
else
|
|
||||||
_mingwtriplet="${xbps_machine}-w32-mingw32"
|
|
||||||
_target_args="--enable-targets=${_mingwtriplet}"
|
|
||||||
_multilib_args="--disable-multilib"
|
|
||||||
fi
|
|
||||||
|
|
||||||
do_build()
|
do_build()
|
||||||
{
|
{
|
||||||
./configure --prefix=${_mingwprefix} --enable-threads \
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
||||||
|
_mingwtriplet="${xbps_machine}-w64-mingw32"
|
||||||
|
_target_args="--enable-targets=${_mingwtriplet},i686-w64-mingw32"
|
||||||
|
_multilib_args="--enable-multilib --enable-64-bit-bfd"
|
||||||
|
else
|
||||||
|
_mingwtriplet="${xbps_machine}-w32-mingw32"
|
||||||
|
_target_args="--enable-targets=${_mingwtriplet}"
|
||||||
|
_multilib_args="--disable-multilib"
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure --prefix=${_mingwprefix} --bindir=${_mingwprefix}/bin \
|
||||||
--target=${_mingwtriplet} ${_target_args} ${_multilib_args} \
|
--target=${_mingwtriplet} ${_target_args} ${_multilib_args} \
|
||||||
--enable-plugins --enable-secureplt --with-mmap --disable-nls \
|
--enable-plugins --enable-secureplt --with-mmap --disable-nls \
|
||||||
--exec-prefix=${_mingwprefix}/${_mingwtriplet}
|
--enable-threads
|
||||||
|
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ do_install()
|
||||||
make DESTDIR=${DESTDIR} install
|
make DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
# Remove lib64 directory and it's only file: libiberty.a
|
# Remove lib64 directory and it's only file: libiberty.a
|
||||||
rm -rf ${DESTDIR}/${_mingwprefix}/${_mingwtriplet}/lib64
|
rm -rf ${DESTDIR}/${_mingwprefix}/lib64
|
||||||
|
|
||||||
# Remove useless manpages
|
# Remove useless manpages
|
||||||
rm -rf ${DESTDIR}/${_mingwprefix}/share
|
rm -rf ${DESTDIR}/${_mingwprefix}/share
|
||||||
|
|
Loading…
Reference in a new issue