Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages-i486-stage1/gmp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-01-30 21:27:25 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-01-30 21:27:25 +0100
commit96306251769086a8e9ff933d2d7d1560bf55df7b (patch)
treee2e7ef67c43c870fe9be8b1f77cb768d15d05a35 /packages-i486-stage1/gmp
parent3ad78d32a2bdfa3d95ed2a369b7528551653b254 (diff)
building up to perl, perl itself fails
Diffstat (limited to 'packages-i486-stage1/gmp')
-rw-r--r--packages-i486-stage1/gmp8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages-i486-stage1/gmp b/packages-i486-stage1/gmp
new file mode 100644
index 0000000..73a6530
--- /dev/null
+++ b/packages-i486-stage1/gmp
@@ -0,0 +1,8 @@
+# gmp is needed by coreutils (later for gawk, gcc)
+SYSROOT_INSTALL=1
+
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
+
+# remove explicit CHOST for build host
+sed -i 's@--build=${CHOST}@@g' PKGBUILD