diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-02-27 15:08:04 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-27 15:09:18 +0000 |
commit | 780c767c07bebb74d01a060b9b6250d4989cbb2c (patch) | |
tree | 792204dc0d2b50d7cc501d402e5ab5fe16c151cb /testing/ghc | |
parent | ee41daa17eddfe32f34d89fb916380ecc5202eeb (diff) | |
download | aports-780c767c07bebb74d01a060b9b6250d4989cbb2c.tar.bz2 aports-780c767c07bebb74d01a060b9b6250d4989cbb2c.tar.xz |
testing/ghc: more fixes to cross-build
Diffstat (limited to 'testing/ghc')
-rw-r--r-- | testing/ghc/APKBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testing/ghc/APKBUILD b/testing/ghc/APKBUILD index 31040fcea7..e2b7ecc29f 100644 --- a/testing/ghc/APKBUILD +++ b/testing/ghc/APKBUILD @@ -99,9 +99,13 @@ build() { cd "$builddir" local _ffi_inc=$(pkg-config libffi --cflags-only-I); _ffi_inc="${_ffi_inc%% }" local _ffi_lib=$(pkg-config libffi --libs-only-L); _ffi_lib="${_ffi_lib%% }" + + # NOTE: ghc build system requires host == build, and it ends up + # compiling the cross-compiler (stage1) and cross-compiling with + # that the native compiler (stage2) ./configure \ --build=$CBUILD \ - --host=$CHOST \ + --host=$CBUILD \ --target=$CTARGET \ --prefix=/usr \ --with-system-libffi \ @@ -143,6 +147,9 @@ package() { mv "$fn" "$_new" || return 1 fi done + # remove triplet prefix from settings -- the intention is + # that the native compiler will use native gcc/ld on the target + sed -ie "s|$CTARGET-||g" "$pkgdir"/usr/lib/${CTARGET}-ghc-$pkgver/settings || return 1 fi # Can't do a full strip on archives. |