Skip to content

Commit 1963a49

Browse files
committed
Add creation of the build-id to the linker flags
1 parent 99594c5 commit 1963a49

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BinaryBuilderBase"
22
uuid = "7f725544-6523-48cd-82d1-3fa08ff4056e"
33
authors = ["Elliot Saba <staticfloat@gmail.com>"]
4-
version = "1.39.1"
4+
version = "1.40.0"
55

66
[deps]
77
Bzip2_jll = "6e34b625-4abd-537c-b88f-471c36dfa7a0"

src/Runner.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,10 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
540540
append!(flags, min_macos_version_linker_flags())
541541
end
542542
end
543+
544+
# Use a known algorithm to embed the build-id for reproducibility
545+
push!(flags, "-Wl,--build-id=sha1")
546+
543547
return flags
544548
end
545549

@@ -629,6 +633,10 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
629633
# https://github.com/JuliaPackaging/BinaryBuilder.jl/issues/1232
630634
push!(flags, "-Wl,--no-insert-timestamp")
631635
end
636+
637+
# Use a known algorithm to embed the build-id for reproducibility
638+
push!(flags, "-Wl,--build-id=sha1")
639+
632640
sanitize_link_flags!(p, flags)
633641
return flags
634642
end

0 commit comments

Comments
 (0)