summaryrefslogtreecommitdiffstats
path: root/redhat/libraries/libtdeldap/libtdeldap.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/libraries/libtdeldap/libtdeldap.spec')
-rw-r--r--redhat/libraries/libtdeldap/libtdeldap.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/redhat/libraries/libtdeldap/libtdeldap.spec b/redhat/libraries/libtdeldap/libtdeldap.spec
index a6f82b0e5..e7c21c5b7 100644
--- a/redhat/libraries/libtdeldap/libtdeldap.spec
+++ b/redhat/libraries/libtdeldap/libtdeldap.spec
@@ -171,6 +171,11 @@ unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+# openldap 2.4 includes (CentOS 5)
+if [ -d "/usr/include/openldap24" ]; then
+ RPM_OPT_FLAGS="-I%{_includedir}/openldap24 -L%{_libdir}/openldap24 ${RPM_OPT_FLAGS}"
+fi
+
if ! rpm -E %%cmake|grep -q "cd build"; then
%__mkdir_p build
cd build