From 227767728a20496a7581b9e96c61684db0f808ae Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 30 May 2016 21:36:07 +0200 Subject: tips to avoid building the whole libc --- hurd/debugging/glibc.mdwn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'hurd/debugging') 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): -- cgit v1.2.3 From cf7f797bcbfdd7b466153fe93cb3bb42facf3224 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 30 May 2016 22:07:53 +0200 Subject: GLIBC_PASSES doesn't actually work --- hurd/debugging/glibc.mdwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hurd/debugging') diff --git a/hurd/debugging/glibc.mdwn b/hurd/debugging/glibc.mdwn index 69a3beda..d3698256 100644 --- a/hurd/debugging/glibc.mdwn +++ b/hurd/debugging/glibc.mdwn @@ -35,9 +35,11 @@ There is a list of [[known failures|open_issues/glibc]]. --- -When building the debian glibc, to save yourself a double-compilation, use +When building the debian glibc, to save yourself a double-compilation, comment +in debian/sysdeps/hurd-i386.mk the lines about xen. Then to avoid the whole +testsuite, use: - GLIBC_PASSES=libc DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage + 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: -- cgit v1.2.3 From e25d4ea07b09e7e6df61777988c1fc104f0a538e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 4 Jun 2016 20:45:18 +0200 Subject: trick to build only libc.so --- hurd/debugging/glibc.mdwn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hurd/debugging') diff --git a/hurd/debugging/glibc.mdwn b/hurd/debugging/glibc.mdwn index d3698256..dfc4c1c6 100644 --- a/hurd/debugging/glibc.mdwn +++ b/hurd/debugging/glibc.mdwn @@ -42,11 +42,15 @@ testsuite, use: 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: +can restart the build of only libc.so and libc.a with: cd build-tree/hurd-i386-libc make lib +or of only libc.so with: + + make objdir=$PWD/build-tree/hurd-i386-libc $PWD/build-tree/hurd-i386-libc/libc.so + or of the whole tree with: cd build-tree/hurd-i386-libc -- cgit v1.2.3