glibc: re-enable .hash

This fixes running some Linux-compatible EAC games.
This commit is contained in:
oreo639 2024-01-24 16:00:19 -08:00
parent b4dae86acc
commit f36d21c5a2

View file

@ -1,7 +1,7 @@
# Template file for 'glibc' # Template file for 'glibc'
pkgname=glibc pkgname=glibc
version=2.38 version=2.38
revision=3 revision=4
bootstrap=yes bootstrap=yes
short_desc="GNU C library" short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>" maintainer="Enno Boland <gottox@voidlinux.org>"
@ -108,14 +108,20 @@ do_configure() {
libc_cv_rtlddir=${_libdir} libc_cv_slibdir=${_libdir} libc_cv_rtlddir=${_libdir} libc_cv_slibdir=${_libdir}
} }
do_build() { post_configure() {
# Less verbose output when compiling and assembling # 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.c = \(.*\)|compile-command.c = @echo " CC $<"; \1|' \
-e 's|compile-command.cc = \(.*\)|compile-command.cc = @echo " CXX $<"; \1|' \ -e 's|compile-command.cc = \(.*\)|compile-command.cc = @echo " CXX $<"; \1|' \
-e 's|compile-command.S = \(.*\)|compile-command.S = @echo " ASM $<"; \1|' -e 's|compile-command.S = \(.*\)|compile-command.S = @echo " ASM $<"; \1|'
}
do_build() {
cd 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() { do_install() {
vlicense LICENSES vlicense LICENSES