summaryrefslogtreecommitdiff
path: root/hurd/debugging
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-05-30 21:36:07 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-05-30 21:36:07 +0200
commit227767728a20496a7581b9e96c61684db0f808ae (patch)
tree3341a1759cc81ec493790bd1a0028fb93fabbec1 /hurd/debugging
parent067c2d28a4836e40690ff78f13a3204e04ff5265 (diff)
tips to avoid building the whole libc
Diffstat (limited to 'hurd/debugging')
-rw-r--r--hurd/debugging/glibc.mdwn23
1 files changed, 23 insertions, 0 deletions
diff --git a/hurd/debugging/glibc.mdwn b/hurd/debugging/glibc.mdwn
index 14140fdb..69a3beda 100644
--- a/hurd/debugging/glibc.mdwn
+++ b/hurd/debugging/glibc.mdwn
@@ -35,6 +35,29 @@ There is a list of [[known failures|open_issues/glibc]].
---
+When building the debian glibc, to save yourself a double-compilation, use
+
+ GLIBC_PASSES=libc DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage
+
+To save even more build, stop the build after configure has run, and then you
+can restart the build of only libc.so with:
+
+ cd build-tree/hurd-i386-libc
+ make lib
+
+or of the whole tree with:
+
+ cd build-tree/hurd-i386-libc
+ make
+
+or of just one subdir with for instance:
+
+ make subdir=libpthread -C libpthread ..=../ objdir=$PWD/build-tree/hurd-i386-libc
+
+(note that most subdirs need libc.so built)
+
+---
+
If you've been doing simple changes to glibc functions that end up in
`libc.so`, you may test them like this (like for a `strerror_l` implementation
in this case):