1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_ExternalProject_ExternalProject
,openldap
))
12 $(eval
$(call gb_ExternalProject_use_externals
,openldap
,nss3
))
14 $(eval
$(call gb_ExternalProject_register_targets
,openldap
,\
20 openldap_LDFLAGS
+= -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
21 $(if
$(filter AIX
,$(OS
)),-Wl
$(COMMA
)-brtl
)
23 # Help openldap's configure determine that it needs -lpthread even if libasan.so
24 # contains a pthread_create override:
25 ifneq ($(filter -fsanitize
=address
,$(CC
)),)
26 openldap_LDFLAGS
+= -pthread
29 $(call gb_ExternalProject_get_state_target
,openldap
,build
) :
30 $(call gb_ExternalProject_run
,build
,\
35 --without-cyrus-sasl \
38 $(if
$(CROSS_COMPILING
), \
39 --build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) \
40 --with-yielding_select
=yes \
41 ac_cv_func_memcmp_working
=yes \
44 CPPFLAGS
="$(NSS_CFLAGS)" CFLAGS
="$(NSS_CFLAGS)" LDFLAGS
="$(NSS_LIBS)" \
46 CPPFLAGS
="-I$(call gb_UnpackedTarball_get_dir,nss)/dist/public/nss -I$(call gb_UnpackedTarball_get_dir,nss)/dist/out/include" \
47 CFLAGS
="-I$(call gb_UnpackedTarball_get_dir,nss)/dist/public/nss -I$(call gb_UnpackedTarball_get_dir,nss)/dist/out/include" \
49 $(if
$(openldap_LDFLAGS
),LDFLAGS
="$(LDFLAGS) $(openldap_LDFLAGS)") \
50 && MAKEFLAGS
= && $(MAKE
) \
54 # vim: set noet sw=4 ts=4: