Skip to content

Commit

Permalink
configure.ac: fix --enable-debug-trace-errcodes=backtrace with --enab…
Browse files Browse the repository at this point in the history
…le-reproducible-build: don't add -g0 to CFLAGS when both are enabled, because -g0 makes backtracing impossible.
  • Loading branch information
douzzer committed Jan 8, 2025
1 parent 5f95fe3 commit ad5018e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,10 @@ then
AS_CASE([$xxx_ar_flags],[*'use zero for timestamps and uids/gids'*],[AR_FLAGS="Dcr" lt_ar_flags="Dcr"])
AS_CASE([$xxx_ranlib_flags],[*'Use zero for symbol map timestamp'*],[RANLIB="${RANLIB} -D"])

AM_CFLAGS="$AM_CFLAGS -DHAVE_REPRODUCIBLE_BUILD -g0"
if test "$ENABLED_DEBUG_TRACE_ERRCODES" != "backtrace"
then
AM_CFLAGS="$AM_CFLAGS -DHAVE_REPRODUCIBLE_BUILD -g0"
fi

# opportunistically use -ffile-prefix-map (added in GCC8 and LLVM10)

Expand Down

0 comments on commit ad5018e

Please sign in to comment.