From f022da9e5ff807a8ea538cbdb01faf27421731ff Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 23 Apr 2024 23:09:48 +0200 Subject: [PATCH] configure.ac: leave LDFLAGS resolving on make time Use LDFLAGS separately with every use of CLDFLAGS and leave this flag only for handling versioning. This will reflect any LDFLAGS setting use during make. --- configure.ac | 4 ++-- libdm/make.tmpl.in | 6 +++--- make.tmpl.in | 6 +++--- tools/Makefile.in | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index c09adad60..b8bcfbb60 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ AS_CASE(["$host_os"], FSADM="no" LVMIMPORTVDO="no" BLKDEACTIVATE="no"], - [CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"]) + []) ################################################################################ dnl -- Checks for programs. @@ -836,7 +836,7 @@ AS_IF([test "$GCC" = "yes" && test "$symvers" = "gnu"], [ [Define to use GNU versioning in the shared library.]) AS_CASE(["$host_os"], [linux*], [ - CLDFLAGS="${CLDFLAGS-"$LDFLAGS"} -Wl,--version-script,.export.sym" + CLDFLAGS="-Wl,--version-script,.export.sym" LDDEPS="$LDDEPS .export.sym"]) ]) diff --git a/libdm/make.tmpl.in b/libdm/make.tmpl.in index d40bf1179..5c6b2160f 100644 --- a/libdm/make.tmpl.in +++ b/libdm/make.tmpl.in @@ -434,7 +434,7 @@ DEFS+=-D_FILE_OFFSET_BITS=64 %.so: %.o $(SHOW) " [CC] $(