summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-24 02:04:22 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-24 02:04:22 +0100
commitbe148a809bc03e02431fe192a93b2a6ea62c2984 (patch)
tree9f3a0ce4500ff632d460dfda4b125c75e349617f /hurd
parent6209e44f1ec639953c63ac1e4f410ae7f9395f09 (diff)
notes about cross-building glibc easily
Diffstat (limited to 'hurd')
-rw-r--r--hurd/glibc.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/hurd/glibc.mdwn b/hurd/glibc.mdwn
index 39bfed6..1389afa 100644
--- a/hurd/glibc.mdwn
+++ b/hurd/glibc.mdwn
@@ -17,3 +17,19 @@ For information about how the glibc integrates into the system, see sections
[[Hurd-specific_API]].
[[Debugging_glibc|debugging/glibc]].
+
+## Cross-building glibc from Linux.
+
+The long-term goal is to get build-many-glibcs.py to be able to cross-compile
+glibc. This should be working as per the following:
+
+ mkdir -p /tmp/build/src
+ cp -a /usr/src/glibc /tmp/build/src/
+ unset CFLAGS
+ /tmp/build/src/glibc/scripts/build-many-glibcs.py /tmp/build checkout binutils-2.29 gcc-7.1.0
+ /tmp/build/src/glibc/scripts/build-many-glibcs.py /tmp/build host-libraries
+ /tmp/build/src/glibc/scripts/build-many-glibcs.py /tmp/build compilers i686-gnu
+ /tmp/build/src/glibc/scripts/build-many-glibcs.py /tmp/build glibcs i686-gnu
+
+Ideally the master branch builds that way. As of January 2018 the goal is first
+to get the sthibaul/hurd-builds branch building.