diff --git a/openldap.spec b/openldap.spec index 238973794f65c78326bcc97758c557e68d75fa67..8ced843cef39dadf09f951e0a85a0fd923417d84 100644 --- a/openldap.spec +++ b/openldap.spec @@ -128,6 +128,9 @@ popd %build %set_build_flags +%if "%toolchain" == "clang" + export CFLAGS="$CFLAGS -Wno-error=int-conversion" +%endif export CFLAGS="${CFLAGS} ${LDFLAGS} -Wl,--as-needed -DLDAP_CONNECTIONLESS -DLDAP_USE_NON_BLOCKING_TLS" pushd openldap-%{version}