From f4932dde6951e4a7f6353aee1ff69bf773fd50ba Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 4 Jun 2009 19:30:50 +0000 Subject: [PATCH] - suppress our indirect dependencies from the output of --libs, unless the user also passed in the --deps flag --- krb5-1.7-nodeplibs.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 krb5-1.7-nodeplibs.patch diff --git a/krb5-1.7-nodeplibs.patch b/krb5-1.7-nodeplibs.patch new file mode 100644 index 0000000..706da3a --- /dev/null +++ b/krb5-1.7-nodeplibs.patch @@ -0,0 +1,20 @@ +Omit extra libraries because their interfaces aren't exposed to applications +by libkrb5, unless do_deps is set to 1, which indicates that the caller +wants the whole list. + +diff -up krb5-1.7/src/krb5-config.in krb5-1.7/src/krb5-config.in +--- krb5-1.7/src/krb5-config.in 2009-06-04 14:34:33.000000000 -0400 ++++ krb5-1.7/src/krb5-config.in 2009-06-04 14:34:33.000000000 -0400 +@@ -220,7 +220,11 @@ if test -n "$do_libs"; then + fi + + if test $library = 'krb5'; then +- lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err $GEN_LIB $LIBS $SELINUX_LIBS $DL_LIB" ++ if test "$do_deps" -eq 1 ; then ++ lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err $GEN_LIB $LIBS $SELINUX_LIBS $DL_LIB" ++ else ++ lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err" ++ fi + fi + + echo $lib_flags