fix bug 150339: fix include paths for libbind; add BuildRequires for

libbind-devel
This commit is contained in:
jvdias 2005-03-11 00:55:28 +00:00
parent ecec97b5c8
commit 000ba96b33

View File

@ -140,17 +140,11 @@ 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
define(\`confMAPDEF', \`-DNEWDB -DNIS -DHESIOD -DMAP_REGEX -DSOCKETMAP')
%ifnarch ppc64
define(\`confOPTIMIZE', \`\`\`${RPM_OPT_FLAGS}''')
%endif
define(\`confENVDEF', \`-I/usr/include/db4 -I/usr/kerberos/include -Wall -DXDEBUG=0 -DTCPWRAPPERS -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_WORKAROUND_BROKEN_NAMESERVERS -D_FFR_SMTP_SSL')
define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}')
define(\`confLIBS', \`-lnsl -lwrap -lhesiod -lcrypt -ldb')
@ -225,8 +219,8 @@ 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
# on s390x and ppc64, we end up getting NAMED_BIND=1 but no -lbind ?!?!
%ifarch s390x ppc64
cat >> redhat.config.m4 << EOF
APPENDDEF(\`confLIBS',\` -lbind')dnl
EOF