Commit 1e88af3f authored by William Johansson's avatar William Johansson Committed by Ariadne Conill
Browse files

main/binutils: enable x86_64-pep target

On x86_64, enable the additional target x86_64-pep. This will allow Xen
to build it's EFI bootloader.
parent da600183
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=binutils
pkgver=2.28
pkgrel=1
pkgrel=2
pkgdesc="Tools necessary to build programs"
url="http://www.gnu.org/software/binutils/"
depends=""
......@@ -31,12 +31,17 @@ fi
build() {
local _sysroot=/
local _cross_configure="--enable-install-libiberty"
local _arch_configure=""
if [ "$CHOST" != "$CTARGET" ]; then
_sysroot="$CBUILDROOT"
_cross_configure="--disable-install-libiberty"
fi
if [ "$CARCH" = "x86_64" ]; then
_arch_configure="--enable-targets=x86_64-pep"
fi
cd "$builddir"
./configure \
--build=$CBUILD \
......@@ -56,6 +61,7 @@ build() {
--enable-relro \
--enable-deterministic-archives \
$_cross_configure \
$_arch_configure \
--disable-werror \
--disable-nls \
--with-system-zlib \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment