mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 18:13:50 +02:00
binutils: disable libiberty installation
This commit is contained in:
parent
9a647c86e9
commit
f46e1b7b86
1 changed files with 14 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'binutils'
|
# Template file for 'binutils'
|
||||||
pkgname=binutils
|
pkgname=binutils
|
||||||
version=2.35.1
|
version=2.35.1
|
||||||
revision=3
|
revision=4
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
short_desc="GNU binary utilities"
|
short_desc="GNU binary utilities"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
|
@ -36,7 +36,7 @@ do_configure() {
|
||||||
if [ "$CHROOT_READY" ]; then
|
if [ "$CHROOT_READY" ]; then
|
||||||
conf+=" --with-debuginfod"
|
conf+=" --with-debuginfod"
|
||||||
else
|
else
|
||||||
conf+=" --without-debuginfod"
|
conf+=" --without-debuginfod --disable-install-libbfd"
|
||||||
fi
|
fi
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# we don't want --with-sysroot=${XBPS_CROSS_BASE} like gnu-configure
|
# we don't want --with-sysroot=${XBPS_CROSS_BASE} like gnu-configure
|
||||||
|
@ -85,7 +85,6 @@ do_configure() {
|
||||||
--enable-deterministic-archives \
|
--enable-deterministic-archives \
|
||||||
--enable-64-bit-bfd \
|
--enable-64-bit-bfd \
|
||||||
--enable-ld=default \
|
--enable-ld=default \
|
||||||
--enable-install-libiberty \
|
|
||||||
--with-system-zlib \
|
--with-system-zlib \
|
||||||
--with-mmap \
|
--with-mmap \
|
||||||
--with-pic \
|
--with-pic \
|
||||||
|
@ -116,13 +115,15 @@ do_install() {
|
||||||
rm -f ${DESTDIR}/usr/bin/ld
|
rm -f ${DESTDIR}/usr/bin/ld
|
||||||
ln -sfr ${DESTDIR}/usr/bin/ld.bfd ${DESTDIR}/usr/bin/ld
|
ln -sfr ${DESTDIR}/usr/bin/ld.bfd ${DESTDIR}/usr/bin/ld
|
||||||
|
|
||||||
# Remove these symlinks, they are not ABI stable.
|
if [ "$CHROOT_READY" ]; then
|
||||||
# Programs should compile static to the .a file.
|
# Remove these symlinks, they are not ABI stable.
|
||||||
rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
|
# Programs should compile static to the .a file.
|
||||||
echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
|
rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
|
||||||
>${DESTDIR}/usr/lib/libbfd.so
|
echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
|
||||||
echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
|
>${DESTDIR}/usr/lib/libbfd.so
|
||||||
>${DESTDIR}/usr/lib/libopcodes.so
|
echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
|
||||||
|
>${DESTDIR}/usr/lib/libopcodes.so
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove useless manpages.
|
# Remove useless manpages.
|
||||||
for f in dlltool nlmconv windres windmc; do
|
for f in dlltool nlmconv windres windmc; do
|
||||||
|
@ -136,6 +137,9 @@ do_install() {
|
||||||
|
|
||||||
binutils-devel_package() {
|
binutils-devel_package() {
|
||||||
depends="zlib-devel"
|
depends="zlib-devel"
|
||||||
|
if [ "$CHROOT_READY" ]; then
|
||||||
|
depends+=" libiberty-devel"
|
||||||
|
fi
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
Loading…
Add table
Reference in a new issue