diff options
author | Ken Raeburn <raeburn@mit.edu> | 2007-08-25 09:03:36 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2007-08-25 09:03:36 +0000 |
commit | 73c61f473e4df261ff38e3349cf18dc178726fd1 (patch) | |
tree | 9fed935ab76e72e2e07f9a302b30a069334dcd2e /src/krb5-config.in | |
parent | 12c2f99b35e5fccfdaff83c0e04db38f284c4937 (diff) | |
download | krb5-73c61f473e4df261ff38e3349cf18dc178726fd1.tar.gz krb5-73c61f473e4df261ff38e3349cf18dc178726fd1.tar.xz krb5-73c61f473e4df261ff38e3349cf18dc178726fd1.zip |
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
Diffstat (limited to 'src/krb5-config.in')
-rwxr-xr-x | src/krb5-config.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/krb5-config.in b/src/krb5-config.in index 341450cd28..9b55e808b8 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"'#' \ |