binutils, gcc: create usr/lib -> usr/lib64 symlink for x86_64.

Based on patch contributed by ojab at
https://bugs.launchpad.net/xbps/+bug/453754

--HG--
extra : convert_revision : d7de7ee4bd3e34bfa89e3a2148359f336a372797
This commit is contained in:
Juan RP 2009-10-18 12:28:15 +02:00
parent ed8d41be39
commit 699366bdc1
2 changed files with 17 additions and 2 deletions

View file

@ -26,6 +26,14 @@ base_chroot=yes
subpackages="devel"
Add_dependency run glibc
pre_install()
{
if [ "$xbps_machine" = "x86_64" ]; then
mkdir -vp ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr/lib && ln -sv lib lib64 && cd ${wrksrc}
fi
}
post_install()
{
# Remove info file that conflicts with autoconf.

View file

@ -1,8 +1,7 @@
# Template build file for 'gcc'
pkgname=gcc
version=4.4.1
distfiles="
http://ftp.gnu.org/pub/gnu/gcc/$pkgname-$version/$pkgname-$version.tar.bz2"
distfiles="http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-clocale=gnu --disable-bootstrap
--enable-threads=posix --enable-__cxa_atexit --disable-multilib
@ -33,6 +32,14 @@ pre_configure()
sed -i 's/install_to_$(INSTALL_DEST) //' $wrksrc/libiberty/Makefile.in
}
pre_install()
{
if [ "$xbps_machine" = "x86_64" ]; then
mkdir -vp ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr/lib && ln -sv lib lib64 && cd ${wrksrc}
fi
}
post_install()
{
cd ${DESTDIR}/usr/bin && ln -s gcc cc