diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template index 3272a1df265..725f48137d5 100644 --- a/srcpkgs/glibc/template +++ b/srcpkgs/glibc/template @@ -1,7 +1,7 @@ # Template file for 'glibc' pkgname=glibc version=2.38 -revision=3 +revision=4 bootstrap=yes short_desc="GNU C library" maintainer="Enno Boland " @@ -108,14 +108,20 @@ do_configure() { libc_cv_rtlddir=${_libdir} libc_cv_slibdir=${_libdir} } -do_build() { +post_configure() { # Less verbose output when compiling and assembling - sed -i Makerules \ + vsed -i Makerules \ -e 's|compile-command.c = \(.*\)|compile-command.c = @echo " CC $<"; \1|' \ -e 's|compile-command.cc = \(.*\)|compile-command.cc = @echo " CXX $<"; \1|' \ -e 's|compile-command.S = \(.*\)|compile-command.S = @echo " ASM $<"; \1|' +} + +do_build() { cd build - make ${makejobs} + # Enable both DT_GNU_HASH and DT_HASH for ld.so and DSOs to improve + # compatibility with applications that expect DT_HASH. + env LDFLAGS.so="-Wl,--hash-style=both" LDFLAGS-rtld="-Wl,--hash-style=both" \ + make ${makejobs} } do_install() { vlicense LICENSES