Skip to content

Commit 30181f2

Browse files
committed
configure.ac: for reproducible-build, use --build-id=sha1, not --build-id=none, to support users relying on build-id in the linked object.
1 parent bffcfb7 commit 30181f2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

configure.ac

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,16 +573,15 @@ then
573573
AM_CFLAGS="$AM_CFLAGS -ffile-prefix-map=\$(abs_top_srcdir)/= -ffile-prefix-map=\$(top_srcdir)/="
574574
fi
575575

576-
# opportunistically use linker option --build-id=none
577-
578-
if "$CC" -Wl,--build-id=none -x c - -o /dev/null >/dev/null 2>&1 <<' EOF'
576+
# opportunistically force linker option --build-id=sha1 (usually the default)
577+
if "$CC" -Wl,--build-id=sha1 -x c - -o /dev/null >/dev/null 2>&1 <<' EOF'
579578
#include <stdlib.h>
580579
int main(int argc, char **argv) {
581580
(void)argc; (void)argv; return 0;
582581
}
583582
EOF
584583
then
585-
AM_LDFLAGS="$AM_LDFLAGS -Wl,--build-id=none"
584+
AM_LDFLAGS="$AM_LDFLAGS -Wl,--build-id=sha1"
586585
fi
587586
fi
588587

0 commit comments

Comments
 (0)