From 3e842cb5d3a203b55d296864288a647527a2534c Mon Sep 17 00:00:00 2001 From: Quentin Armitage Date: Mon, 21 Oct 2024 22:25:07 +0100 Subject: [PATCH] configure: Remove -ffile-prefix-map= for repeatible builds Debian has a patch for building keepalived that removed -ffile-prefix-map=... to assist with repeatible build. The commit adds removing -ffile-prefix-map= from the gcc options if repeatible builds are enabled. Signed-off-by: Quentin Armitage --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index ff762482df..efbe2f8e4c 100644 --- a/configure.ac +++ b/configure.ac @@ -438,6 +438,7 @@ AS_IF([test $? -eq 0], # save the configure arguments # args=`echo $ac_configure_args | $SED -e "s/'//g"` +AS_IF([test .$enable_reproducible_build = .yes], [`echo $ac_configure_args | $SED -e "s/-ffile-prefix-map=[[^ ]]*//g"`] AC_DEFINE_UNQUOTED(KEEPALIVED_CONFIGURE_OPTIONS,"$args", [configure options specified]) AS_IF([test .$enable_lto = .yes],