- Sync the copy of the portable specfile with the devkit version - Document the devkit in README.md Related: RHEL-74404
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
From c370e1194c707f3f6c470e147ec497cc4e76957e Mon Sep 17 00:00:00 2001
 | 
						|
From: Thomas Fitzsimmons <fitzsim@redhat.com>
 | 
						|
Date: Fri, 22 Mar 2024 16:03:17 -0400
 | 
						|
Subject: [PATCH] Tools.gmk: Configure binutils with
 | 
						|
 --enable-deterministic-archives
 | 
						|
 | 
						|
---
 | 
						|
 make/devkit/Tools.gmk | 4 ++++
 | 
						|
 1 file changed, 4 insertions(+)
 | 
						|
 | 
						|
diff --git a/make/devkit/Tools.gmk b/make/devkit/Tools.gmk
 | 
						|
index 37ea1a6a287..22c6007000b 100644
 | 
						|
--- a/make/devkit/Tools.gmk
 | 
						|
+++ b/make/devkit/Tools.gmk
 | 
						|
@@ -445,6 +445,9 @@ endif
 | 
						|
 
 | 
						|
 # Makefile creation. Simply run configure in build dir.
 | 
						|
 # Setting CFLAGS to -O2 generates a much faster ld.
 | 
						|
+# Use --enable-deterministic-archives so that make targets that
 | 
						|
+# generate "ar" archives, such as "static-libs-image", produce
 | 
						|
+# deterministic .a files.
 | 
						|
 $(bfdmakes) \
 | 
						|
 $(BUILDDIR)/$(binutils_ver)/Makefile \
 | 
						|
     : $(BINUTILS_CFG)
 | 
						|
@@ -459,6 +462,7 @@ $(BUILDDIR)/$(binutils_ver)/Makefile \
 | 
						|
 	      --with-sysroot=$(SYSROOT) \
 | 
						|
 	      --disable-nls \
 | 
						|
 	      --program-prefix=$(TARGET)- \
 | 
						|
+	      --enable-deterministic-archives \
 | 
						|
 	      --enable-multilib \
 | 
						|
 	      --enable-threads \
 | 
						|
 	      --enable-plugins \
 | 
						|
-- 
 | 
						|
2.45.2
 | 
						|
 |