From: Oleksiy Obitotskyy Date: Tue, 19 Jan 2021 08:33:06 +0000 (-0800) Subject: lldpd: override compiler and linker option strings X-Git-Tag: 1.0.9~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69d92462ad5b19ca63ae03129de6bc8af73c159f;p=thirdparty%2Flldpd.git lldpd: override compiler and linker option strings Compiler and linker option strings contains absolute path, so replace them with disclaimer. Thos strings used only as debug information to show not actual compilation options. Signed-off-by: Oleksiy Obitotskyy --- diff --git a/configure.ac b/configure.ac index 627eab45..5128569d 100644 --- a/configure.ac +++ b/configure.ac @@ -382,8 +382,16 @@ fi AX_BUILD_DATE_EPOCH(BUILD_DATE, "%FT%TZ", [BUILD_DATE="(unknown)"]) AC_DEFINE_UNQUOTED(BUILD_DATE, "[$BUILD_DATE]", [Build date and time]) + +dnl per reproducible-builds.org check SOURCE_DATE_EPOCH +dnl +if test -z "${SOURCE_DATE_EPOCH+set}" ; then AC_DEFINE_UNQUOTED(LLDP_CC, "[$CC $LLDP_CFLAGS $LLDP_CPPFLAGS $CFLAGS $CPPFLAGS]", [C compiler command]) AC_DEFINE_UNQUOTED(LLDP_LD, "[$LD $LLDP_LDFLAGS $LLDP_BIN_LDFLAGS $LDFLAGS $LIBS]", [Linker compiler command]) +else +AC_DEFINE_UNQUOTED(LLDP_CC, "[C compiler command is not available for reproducible builds]", [C compiler command]) +AC_DEFINE_UNQUOTED(LLDP_LD, "[Linker compiler command is not available for reproducible builds]", [Linker compiler command]) +fi ####################### # Output results