krb5 commit: Omit LDFLAGS from krb5-config --libs output
ghudson at mit.edu
ghudson at mit.edu
Wed May 18 16:53:04 EDT 2022
https://github.com/krb5/krb5/commit/0bfd22feb6493f34fdc894daaf680c3a2f2e7784
commit 0bfd22feb6493f34fdc894daaf680c3a2f2e7784
Author: Greg Hudson <ghudson at mit.edu>
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)##'`
More information about the cvs-krb5
mailing list