aboutsummaryrefslogtreecommitdiffstats
path: root/main/binutils/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-08 10:10:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-08 11:40:50 +0000
commit26168a99d24dd09d955ac4bab3332dc55ce07d29 (patch)
treecf7a6b93afb47e9abe80c756761a44bed0394fd8 /main/binutils/APKBUILD
parent1a26d9b5a86dc04d32a5bd7cb0ab47b49c884727 (diff)
downloadaports-26168a99d24dd09d955ac4bab3332dc55ce07d29.tar.bz2
aports-26168a99d24dd09d955ac4bab3332dc55ce07d29.tar.xz
main/binutils: support crosscompiling
Diffstat (limited to 'main/binutils/APKBUILD')
-rw-r--r--main/binutils/APKBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD
index d69e308d80..a2aa83b482 100644
--- a/main/binutils/APKBUILD
+++ b/main/binutils/APKBUILD
@@ -29,12 +29,14 @@ prepare() {
build() {
cd "$_builddir"
+
./configure --prefix=/usr \
- --mandir /usr/share/man \
- --build ${CBUILD:-i486-alpine-linux-uclibc} \
- --host ${CHOST:-i486-alpine-linux-uclibc} \
- --target ${CTARGET:-i486-alpine-linux-uclibc} \
- --infodir /usr/share/info \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --with-build-sysroot="${CBUILDROOT}" \
+ --build=${CBUILD} \
+ --host=${CHOST} \
+ --target=${CTARGET} \
--disable-multilib \
--enable-shared \
--enable-64-bit-bfd \