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:
parent
ed8d41be39
commit
699366bdc1
2 changed files with 17 additions and 2 deletions
|
@ -26,6 +26,14 @@ base_chroot=yes
|
||||||
subpackages="devel"
|
subpackages="devel"
|
||||||
Add_dependency run glibc
|
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()
|
post_install()
|
||||||
{
|
{
|
||||||
# Remove info file that conflicts with autoconf.
|
# Remove info file that conflicts with autoconf.
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
# Template build file for 'gcc'
|
# Template build file for 'gcc'
|
||||||
pkgname=gcc
|
pkgname=gcc
|
||||||
version=4.4.1
|
version=4.4.1
|
||||||
distfiles="
|
distfiles="http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
|
||||||
http://ftp.gnu.org/pub/gnu/gcc/$pkgname-$version/$pkgname-$version.tar.bz2"
|
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--enable-clocale=gnu --disable-bootstrap
|
configure_args="--enable-clocale=gnu --disable-bootstrap
|
||||||
--enable-threads=posix --enable-__cxa_atexit --disable-multilib
|
--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
|
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()
|
post_install()
|
||||||
{
|
{
|
||||||
cd ${DESTDIR}/usr/bin && ln -s gcc cc
|
cd ${DESTDIR}/usr/bin && ln -s gcc cc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue