mail/mimedefang: ld cannot find LDAP

I have sendmail from base compiled with LDAP and SASL support. During configure script run is determined, that libsm is linked against LDAP
Code:
configure:6090: checking whether libsm requires -lldap
configure:6097: result: yes
but build fails, because
Code:
/usr/bin/ld: cannot find -lldap

This flaw is easily resolved with following pseudodiff in work/mimedefang/Makefile
Code:
-LDFLAGS=
+LDFLAGS=-L/usr/local/lib

As I am not an expert porter/Makefile guru, I would like to ask what is the right way to deal with such problem.
 
Back
Top