]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Omit LDFLAGS from krb5-config --libs output 1247/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 3 May 2022 05:56:05 +0000 (01:56 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 18 May 2022 20:38:22 +0000 (16:38 -0400)
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

index dead0dddce7a6cedcc807a7ac41b706a4c4800d1..8e6eb866018608e6f8a06702e0b8c6db07cc4f3b 100755 (executable)
@@ -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)##'`