diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index f7ae2b6ef..5674ebd08 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -66,6 +66,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 ...