From f36d21c5a25e24a15a740b83f0847956a1c1b146 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Wed, 24 Jan 2024 16:00:19 -0800 Subject: [PATCH] glibc: re-enable .hash This fixes running some Linux-compatible EAC games. --- srcpkgs/glibc/template | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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