Hi Lists,
I don't know if cyrus-sasl supports LDFLAGS="-Wl,--as-needed" . I
failed to build with
LDFLAGS="-Wl,--as-needed" ./configure --prefix=/usr --enable-auth-sasldb
--with-dblib=berkeley && make
<snip>
gcc -g -O2 -Wl,--as-needed -o saslauthd mechanisms.o auth_dce.o
auth_getpwent.o auth_krb5.o auth_krb4.o auth_pam.o auth_rimap.o
auth_httpform.o auth_shadow.o auth_sia.o auth_sasldb.o lak.o auth_ldap.o
cache.o cfile.o krbtf.o utils.o ipc_unix.o ipc_doors.o saslauthd-main.o
md5.o -lgssapi -lkrb5 -lasn1 -lroken -lcrypt -lcrypto -lcom_err -lresolv
-lcrypt -lresolv -ldb-4.3 ../sasldb/.libs/libsasldb.al -lpam
-lresolv -lresolv
../sasldb/.libs/libsasldb.al(db_berkeley.lo): In function
`berkeleydb_close':
/tmp/cyrus-sasl-2.1.22/sasldb/db_berkeley.c:147: undefined reference to
`db_strerror'
../sasldb/.libs/libsasldb.al(db_berkeley.lo): In function `berkeleydb_open':
/tmp/cyrus-sasl-2.1.22/sasldb/db_berkeley.c:100: undefined reference to
`db_create'
/tmp/cyrus-sasl-2.1.22/sasldb/db_berkeley.c:117: undefined reference to
`db_strerror'
../sasldb/.libs/libsasldb.al(db_berkeley.lo): In function `_sasldb_getdata':
/tmp/cyrus-sasl-2.1.22/sasldb/db_berkeley.c:228: undefined reference to
`db_strerror'
../sasldb/.libs/libsasldb.al(db_berkeley.lo): In function `_sasldb_putdata':
/tmp/cyrus-sasl-2.1.22/sasldb/db_berkeley.c:318: undefined reference to
`db_strerror'
/tmp/cyrus-sasl-2.1.22/sasldb/db_berkeley.c:330: undefined reference to
`db_strerror'
collect2: ld returned 1 exit status
make[3]: *** [saslauthd] Error 1
make[3]: Leaving directory `/tmp/cyrus-sasl-2.1.22/saslauthd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/cyrus-sasl-2.1.22/saslauthd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/cyrus-sasl-2.1.22'
make: *** [all] Error 2
Thanks,
Tuan