[POC] build: Use “build ID” instead of “debug link” to specify debug info #24556

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:220314-build-id changing 2 files +2 −1
  1. hebasto commented at 10:28 am on March 14, 2022: member

    This PR makes GUIX built executables, except for the GUI (TBD), architecture agnostic.

    Close bitcoin/bitcoin#21194 ?

  2. build: Use "build ID" instead of "debug link" to specify debug info
    This change makes GUIX built executables, except for the GUI,
    architecture agnostic.
    25756bc094
  3. fanquake added the label Build system on Mar 14, 2022
  4. in configure.ac:973 in 25756bc094
    969@@ -970,6 +970,8 @@ if test "$TARGET_OS" = "darwin"; then
    970   AX_CHECK_LINK_FLAG([-Wl,-bind_at_load], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-bind_at_load"], [], [$LDFLAG_WERROR])
    971 fi
    972 
    973+AX_CHECK_LINK_FLAG([-Wl,--build-id=0xfedcba9876543210], [LDFLAGS="$LDFLAGS -Wl,--build-id=0xfedcba9876543210"], [AC_MSG_ERROR([linker did not accept --build-id flag])], [$LDFLAG_WERROR])
    


    hebasto commented at 10:34 am on March 14, 2022:
    Of course, it should use git commit hash or some another tag, but not be hardcoded :)

    fanquake commented at 10:42 am on March 14, 2022:
    Why is this an error if it’s not accepted? We can’t use it that way, because not all of our linkers support this option.

    hebasto commented at 10:48 am on March 14, 2022:

    Why is this an error if it’s not accepted?

    Mostly, to ensure GUIX builds are successful for all hosts.

    We can’t use it that way, because not all of our linkers support this option.

    Agree. Will be happy if a more suitable approach will be suggested.


    dongcarl commented at 7:55 pm on March 14, 2022:
    Not opposed to specifying this, but perhaps we’d do it at the contrib/guix/libexec/build.sh level as a HOST_LDFLAGS
  5. hebasto commented at 10:25 am on March 16, 2022: member

    This PR makes GUIX built executables, except for the GUI (TBD), architecture agnostic.

    Closing this in favor of #24569, as the latter achieves cross-arch reproducibility for Qt binaries as well.

  6. hebasto closed this on Mar 16, 2022

  7. hebasto deleted the branch on Mar 24, 2022
  8. DrahtBot locked this on Mar 24, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me