From e856b04f7e07395bc4e085b2ef25bef55331d1a6 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 24 Jan 2022 14:32:45 +0100 Subject: [PATCH] Move -lssp to LIBS. Append -lssp to LIBS to ensure the correct order of linking. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4fa9975d..ddfa0a39 100644 --- a/configure.ac +++ b/configure.ac @@ -253,7 +253,7 @@ AS_IF([test "x$enable_hardening" != "xno"], *mingw*) AX_CHECK_LINK_FLAG([-Wl,--dynamicbase], [LDFLAGS="$LDFLAGS -Wl,--dynamicbase"]) AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"]) - AX_CHECK_LINK_FLAG([-lssp], [LDFLAGS="$LDFLAGS -lssp"]) + AX_CHECK_LINK_FLAG([-lssp], [LIBS="$LIBS -lssp"]) ;; *) AX_CHECK_COMPILE_FLAG([-fPIE], [CPPFLAGS="$CPPFLAGS -fPIE"]) -- 2.20.1