Bladeren bron

glibc-2.36-3

Tomohiro "Tomo-p" KATO 1 jaar geleden
bovenliggende
commit
c8ef67f6bf
1 gewijzigde bestanden met toevoegingen van 17 en 3 verwijderingen
  1. 17 3
      g/glibc/glibc-vl.spec

+ 17 - 3
g/glibc/glibc-vl.spec

@@ -18,7 +18,7 @@ Summary: The GNU libc libraries
 Summary(ja): GNU libc ライブラリ
 Name: %{?compat32_prefix}glibc
 Version: %{glibcversion}
-Release: 2%{?_dist_release}%{?with_systemd:.systemd}
+Release: 3%{?_dist_release}%{?with_systemd:.systemd}
 Group: system%{?compat32_group}
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -65,7 +65,7 @@ rpm.define("__debug_install_post bash " .. wrapper
 %undefine _unique_build_ids
 
 # patch from upstream
-Patch0: glibc-2.36-20221118.patch
+Patch0: glibc-2.36-20221206.patch
 
 # patches from Fedora
 Patch4: glibc-fedora-linux-tcsetattr.patch
@@ -576,7 +576,17 @@ build()
 		--disable-crypt ||
 		{ cat config.log; false; }
 
-	%make_build -O -r %{glibc_make_flags}
+	# We enable DT_GNU_HASH and DT_HASH for ld.so and DSOs to improve
+	# compatibility with applications that expect DT_HASH e.g. Epic Games
+	# Easy Anti-Cheat.  This is temporary as applications move to
+	# supporting only DT_GNU_HASH.  This was initially enabled in Fedora
+	# 37.  We must use 'env' because it is the only way to pass, via the
+	# environment, two variables that set the initial Makefile values for
+	# LDFLAGS used to build shared objects and the dynamic loader.
+	
+	env LDFLAGS.so="-Wl,--hash-style=both" \
+		LDFLAGS-rtld="-Wl,--hash-style=both" \
+		%make_build -O -r %{glibc_make_flags}
 	popd
 }
 
@@ -1771,6 +1781,10 @@ rm -f *.filelist*
 
 
 %changelog
+* Tue Dec 06 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.36-3
+- updated Patch0.
+- added "--hash-style=both".
+
 * Fri Nov 18 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.36-2
 - updated Patch0.
 - dropped Patch7.