From 5bd6ec5923fd5bb488e716464d30f340d343feec Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 12 Feb 2008 05:45:43 +0200 Subject: [PATCH] Fixed glibc to install libraries and no programs only and to filter out header files while building the additional multilib ABIs --- base/glibc/glibc.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index 820057a17..0f9e27b55 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -68,6 +68,17 @@ fi pkg_glibc_abi_preconf() { slibdir="lib$1" echo_status "slibdir: $slibdir" + + # applies to all additional ABIs while building multilib + if [ $buildloop -ge 2 ]; then + # only install libraries and no programs + hook_add premake 5 "echo 'build-programs=no' > configparms" + var_remove makeinstopt ' ' 'install' + var_append makeinstopt ' ' 'install-lib-all' + # filter out some unwanted header files + var_append INSTALL_WRAPPER_FILTER "|" \ + "sed -e 's,.*usr/include/.*\.h,/tmp/removed.h,'" + fi } # use at least "-O" when build without optimisation for debugging ...