--- aide-0.17.3/Makefile.am.orig 2021-02-24 12:03:16.648845473 +0100 +++ aide-0.17.3/Makefile.am 2021-02-24 12:03:57.336978950 +0100 @@ -59,7 +59,7 @@ aide_SOURCES += include/fopen.h src/fopen.c endif -aide_LDADD = -lm @PCRELIB@ @CRYPTLIB@ @ACLLIB@ @SELINUXLIB@ @AUDITLIB@ @ATTRLIB@ @E2FSATTRSLIB@ @ELFLIB@ @CAPLIB@ ${CURL_LIBS} +aide_LDADD = -lm @LDFLAGS@ @PCRELIB@ @CRYPTLIB@ @ACLLIB@ @SELINUXLIB@ @AUDITLIB@ @ATTRLIB@ @E2FSATTRSLIB@ @ELFLIB@ @CAPLIB@ ${CURL_LIBS} if HAVE_CHECK TESTS = check_aide