This PR makes GUIX built executables, except for the GUI (TBD), architecture agnostic.
Close bitcoin/bitcoin#21194 ?
This PR makes GUIX built executables, except for the GUI (TBD), architecture agnostic.
Close bitcoin/bitcoin#21194 ?
This change makes GUIX built executables, except for the GUI,
architecture agnostic.
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])
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.
contrib/guix/libexec/build.sh
level as a HOST_LDFLAGS
Labels
Build system