8000 meson: work around ldap.h self-include issue on macos. · petere/postgresql@fad60bf · GitHub
[go: up one dir, main page]

Skip to content

Commit fad60bf

Browse files
committed
meson: work around ldap.h self-include issue on macos.
Fixes: postgres#9
1 parent e8a598d commit fad60bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

meson.build

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,13 @@ if not ldapopt.disabled()
389389
ldap = cc.find_library('wldap32')
390390
ldap_r = ldap
391391
else
392-
ldap = dependency('ldap', required: false)
392+
# macos framework dependency is buggy for ldap (one can argue
393+
# whether it's Apple's or meson's fault), leading to an endless
394+
# recursion with ldap.h including itself. See
395+
# https://github.com/mesonbuild/meson/issues/10002
396+
# Luckily we only need pkg-config support, so the workaround isn't
397+
# too complicated
398+
ldap = dependency('ldap', method: 'pkg-config', required: false)
393399

394400
# Before 2.5 openldap didn't have a pkg-config file..
395401
if ldap.found()

0 commit comments

Comments
 (0)
0