mingw-w64-binutils: improve installation dirs.

This commit is contained in:
Juan RP 2011-07-15 12:35:40 +02:00
parent b6a707c0ff
commit 8d1ed89d87

View file

@ -35,22 +35,22 @@ wrksrc=binutils-$version
_mingwprefix=/opt
if [ "${xbps_machine}" = "x86_64" ]; then
do_build()
{
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
else
_mingwtriplet="${xbps_machine}-w32-mingw32"
_target_args="--enable-targets=${_mingwtriplet}"
_multilib_args="--disable-multilib"
fi
fi
do_build()
{
./configure --prefix=${_mingwprefix} --enable-threads \
./configure --prefix=${_mingwprefix} --bindir=${_mingwprefix}/bin \
--target=${_mingwtriplet} ${_target_args} ${_multilib_args} \
--enable-plugins --enable-secureplt --with-mmap --disable-nls \
--exec-prefix=${_mingwprefix}/${_mingwtriplet}
--enable-threads
make ${makejobs}
}
@ -60,7 +60,7 @@ do_install()
make DESTDIR=${DESTDIR} install
# Remove lib64 directory and it's only file: libiberty.a
rm -rf ${DESTDIR}/${_mingwprefix}/${_mingwtriplet}/lib64
rm -rf ${DESTDIR}/${_mingwprefix}/lib64
# Remove useless manpages
rm -rf ${DESTDIR}/${_mingwprefix}/share