f15fc63
Omit extra libraries because their interfaces aren't exposed to applications
f15fc63
by libkrb5, unless do_deps is set to 1, which indicates that the caller
f15fc63
wants the whole list.
f15fc63
f15fc63
diff -up krb5-1.7/src/krb5-config.in krb5-1.7/src/krb5-config.in
f15fc63
--- krb5-1.7/src/krb5-config.in	2009-06-04 14:34:33.000000000 -0400
f15fc63
+++ krb5-1.7/src/krb5-config.in	2009-06-04 14:34:33.000000000 -0400
f15fc63
@@ -220,7 +220,11 @@ if test -n "$do_libs"; then
f15fc63
     fi
f15fc63
 
f15fc63
     if test $library = 'krb5'; then
f15fc63
-	lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err $GEN_LIB $LIBS $SELINUX_LIBS $DL_LIB"
107324e
+	if test 0$do_deps -eq 1 ; then
f15fc63
+	    lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err $GEN_LIB $LIBS $SELINUX_LIBS $DL_LIB"
f15fc63
+	else
f15fc63
+	    lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err"
f15fc63
+	fi
f15fc63
     fi
f15fc63
 
f15fc63
     echo $lib_flags