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:
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