I uploaded openldap.spec with the following change:

%if "%{with_sasl}" == "yes"
    #   hard-code use of SASL2 library
    ( echo "ac_cv_lib_sasl2_sasl_client_init=yes"
    ) >config.cache
    cf="%{l_cppflags sasl}"
#   -ldl needed on link line to satisfy -lsasl2, which is turned on
#   by the configure script. Only a problem on redhat9.
    sasl_ldflags="-ldl"
%else
    cf="%{l_cppflags}"
%endif
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="$cf" \
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags} $sasl_ldflags" \
    LIBS="%{l_fsl_libs}" \
    ./configure \
    <snip>

This adds libdl to LDFLAGS to satisfy some libsasl2 references. For some
reason, this was only necessary on RedHat Linux 9 and not on Sun Solaris 9,
though I was not able to track down the reason.

Dennis

Dennis McRitchie
Research & Academic Applications Support (RAAS)
Academic Services Department
Office of Information Technology
Princeton University

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to