Fix ldap build

This commit is contained in:
crazywhalecc 2025-06-10 12:28:28 +08:00 committed by Jerry Ma
parent 25c2bafa88
commit 9e8119e69c

View File

@ -27,7 +27,10 @@ trait ldap
'--without-systemd',
'--without-cyrus-sasl',
)
->appendEnv(['LDFLAGS' => "-L{$this->getLibDir()}"])
->appendEnv([
'LDFLAGS' => "-L{$this->getLibDir()}",
'CPPFLAGS' => "-I{$this->getIncludeDir()}",
])
->configure()
->exec('sed -i -e "s/SUBDIRS= include libraries clients servers tests doc/SUBDIRS= include libraries clients servers/g" Makefile')
->make();