From 73c61f473e4df261ff38e3349cf18dc178726fd1 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 25 Aug 2007 09:03:36 +0000 Subject: [PATCH] If libdir is /usr/lib, don't add the -L argument to the library flags to be output. ticket: 5657 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19879 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb5-config.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/krb5-config.in b/src/krb5-config.in index 341450cd2..9b55e808b 100755 --- a/src/krb5-config.in +++ b/src/krb5-config.in @@ -176,11 +176,17 @@ fi if test -n "$do_libs"; then + # Assumes /usr/lib is the standard library directory everywhere... + if test "$libdir" = /usr/lib; then + libdirarg= + else + libdirarg="-L$libdir" + fi # Ugly gross hack for our build tree lib_flags=`echo $CC_LINK | sed -e 's/\$(CC)//' \ -e 's/\$(PURE)//' \ -e 's#\$(PROG_RPATH)#'$libdir'#' \ - -e 's#\$(PROG_LIBPATH)#-L'$libdir'#' \ + -e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \ -e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \ -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \ -e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \ -- 2.26.2