derle.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. export CFLAGS="$CFLAGS -fPIC"
  2. patch -Np1 -i ../0003-Update-saslauthd.conf-location-in-documentation.patch
  3. patch -Np1 -i ../0006-Enable-autoconf-maintainer-mode.patch
  4. patch -Np1 -i ../0010-Update-required-libraries-when-ld-as-needed-is-used.patch
  5. patch -Np1 -i ../0013-Don-t-use-la-files-for-opening-plugins.patch
  6. patch -Np1 -i ../0020-Restore-LIBS-after-checking-gss_inquire_sec_context_.patch
  7. patch -Np1 -i ../0022-Fix-keytab-option-for-MIT-Kerberos.patch
  8. patch -Np1 -i ../0032-Add-with_pgsql-include-postgresql-to-include-path.patch
  9. patch -Np1 -i ../gdbm-errno.patch
  10. rm -f config/config.guess config/config.sub
  11. rm -f config/ltconfig config/ltmain.sh config/libtool.m4
  12. rm -fr autom4te.cache
  13. libtoolize -c
  14. aclocal -I config
  15. automake -a -c
  16. autoheader
  17. autoconf
  18. ./configure --prefix=/usr \
  19. --sbin=/usr/bin \
  20. --mandir=/usr/share/man \
  21. --infodir=/usr/share/info \
  22. --disable-static \
  23. --enable-shared \
  24. --enable-alwaystrue \
  25. --enable-checkapop \
  26. --enable-cram \
  27. --enable-digest \
  28. --disable-otp \
  29. --disable-srp \
  30. --disable-srp-setpass \
  31. --disable-krb4 \
  32. --enable-gssapi \
  33. --enable-auth-sasldb \
  34. --enable-plain \
  35. --enable-anon \
  36. --enable-login \
  37. --enable-ntlm \
  38. --disable-passdss \
  39. --disable-macos-framework \
  40. --with-pam \
  41. --with-saslauthd=/var/run/saslauthd \
  42. --with-ldap \
  43. --with-dbpath=/var/lib/sasl/sasldb2 \
  44. --with-dblib=gdbm \
  45. --with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
  46. --sysconfdir=/etc \
  47. --with-devrandom=/dev/urandom
  48. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  49. make