krb5 commit: Omit LDFLAGS from krb5-config --libs output

[email protected]
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/0bfd22feb6493f34fdc894daaf680c3a2f2e7784
commit 0bfd22feb6493f34fdc894daaf680c3a2f2e7784
Author: Greg Hudson <[email protected]>
Date:   Tue May 3 01:56:05 2022 -0400

    Omit LDFLAGS from krb5-config --libs output
    
    Linker options supplied at configure time (such as -Wl,--as-needed)
    can be harmful when applied to downstream users of the libraries, and
    in most cases should not be necessary.
    
    ticket: 9057 (new)

 src/build-tools/krb5-config.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/build-tools/krb5-config.in b/src/build-tools/krb5-config.in
index dead0dddc..8e6eb8660 100755
--- a/src/build-tools/krb5-config.in
+++ b/src/build-tools/krb5-config.in
@@ -33,7 +33,6 @@ includedir=@includedir@
 libdir=@libdir@
 CC_LINK='@CC_LINK@'
 KDB5_DB_LIB=@KDB5_DB_LIB@
-LDFLAGS='@LDFLAGS@'
 RPATH_FLAG='@RPATH_FLAG@'
 PROG_RPATH_FLAGS='@PROG_RPATH_FLAGS@'
 PTHREAD_CFLAGS='@PTHREAD_CFLAGS@'
@@ -220,7 +219,7 @@ if test -n "$do_libs"; then
 	    -e 's#\$(PROG_RPATH)#'$libdir'#' \
 	    -e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \
 	    -e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \
-	    -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \
+	    -e 's#\$(LDFLAGS)##' \
 	    -e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \
 	    -e 's#\$(CFLAGS)##'`
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.