fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / openldap / ExternalProject_openldap.mk
blob67c2a795b6b63fe1f895eebfc20fb060fcc513c0
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,\
15 build \
18 openldap_LDFLAGS =
19 ifeq ($(SYSTEM_NSS),)
20 openldap_LDFLAGS += -L$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib \
21 $(if $(filter AIX,$(OS)),-Wl$(COMMA)-brtl)
22 endif
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
27 endif
29 $(call gb_ExternalProject_get_state_target,openldap,build) :
30 $(call gb_ExternalProject_run,build,\
31 ./configure \
32 --disable-slapd \
33 --with-pic \
34 --with-tls=moznss \
35 --without-cyrus-sasl \
36 --disable-shared \
37 --enable-static \
38 $(if $(CROSS_COMPILING), \
39 --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \
40 --with-yielding_select=yes \
41 ac_cv_func_memcmp_working=yes \
42 ) \
43 $(if $(SYSTEM_NSS), \
44 CPPFLAGS="$(NSS_CFLAGS)" CFLAGS="$(NSS_CFLAGS)" LDFLAGS="$(NSS_LIBS)" \
45 , \
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" \
48 ) \
49 $(if $(openldap_LDFLAGS),LDFLAGS="$(LDFLAGS) $(openldap_LDFLAGS)") \
50 && MAKEFLAGS= && $(MAKE) \
54 # vim: set noet sw=4 ts=4: