From ecec97b5c899fd841628e5d44d882b00ec39af7b Mon Sep 17 00:00:00 2001 From: jvdias Date: Fri, 11 Mar 2005 00:41:30 +0000 Subject: [PATCH] fix bug 150339: fix include paths for libbind; add BuildRequires for libbind-devel --- sendmail.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sendmail.spec b/sendmail.spec index f39d161..3a3671e 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -140,6 +140,10 @@ your sendmail.cf file. %patch13 -p1 -b .close_wait.p2 %patch14 -p1 -b .fix_for_libbind +# NOTE: on ppc64, the db4 library won't link with objects compiled +# with the default ppc64 $RPM_OPT_FLAGS of '-m64' - disable for now, +# but re-enable once db4 is fixed. + %build # generate redhat config file cat > redhat.config.m4 << EOF @@ -221,6 +225,13 @@ APPENDDEF(\`confLIBS',\`%{l_ldflags mysql .} -lmysqlclient -lz -lm')dnl EOF %endif +# on s390x, we end up getting NAMED_BIND=1 but no -lbind ?!?! +%ifarch s390x +cat >> redhat.config.m4 << EOF +APPENDDEF(\`confLIBS',\` -lbind')dnl +EOF +%endif + DIRS="libsmutil sendmail mailstats rmail praliases smrsh makemap" %if "%{with_milter}" == "yes"