Avoid potential negative array index access to cached text.
[LibreOffice.git] / external / redland / ExternalProject_raptor.mk
blob74759c65be31858af60e843904256e9e5c078a0d
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,raptor))
12 $(eval $(call gb_ExternalProject_use_external,raptor,libxml2))
14 $(eval $(call gb_ExternalProject_register_targets,raptor,\
15 build \
18 $(call gb_ExternalProject_get_state_target,raptor,build):
19 $(call gb_Trace_StartRange,raptor,EXTERNAL)
20 $(call gb_ExternalProject_run,build,\
21 $(if $(filter iOS,$(OS)),LIBS="-liconv") \
22 $(if $(filter -fsanitize=undefined,$(CC)),CC='$(CC) -fno-sanitize=function') \
23 CFLAGS="$(CFLAGS) \
24 $(call gb_ExternalProject_get_build_flags,raptor) \
25 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) \
26 $(if $(filter GCCLINUXPOWERPC64,$(COM)$(OS)$(CPUNAME)),-mminimal-toc)" \
27 LDFLAGS=" \
28 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
29 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
30 CPPFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(gb_EMSCRIPTEN_CPPFLAGS)" \
31 $(gb_RUN_CONFIGURE) ./configure --disable-gtk-doc \
32 --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" \
33 --with-www=xml \
34 --without-xslt-config \
35 $(gb_CONFIGURE_PLATFORMS) \
36 $(if $(CROSS_COMPILING),$(if $(filter INTEL ARM,$(CPUNAME)),ac_cv_c_bigendian=no)) \
37 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
38 $(if $(DISABLE_DYNLOADING), \
39 --enable-static --disable-shared \
40 , \
41 --enable-shared --disable-static \
42 ) \
43 $(if $(SYSTEM_LIBXML),$(if $(filter-out MACOSX,$(OS)),--without-xml2-config),--with-xml2-config=$(call gb_UnpackedTarball_get_dir,libxml2)/xml2-config) \
44 && $(MAKE) \
46 $(call gb_Trace_EndRange,raptor,EXTERNAL)
48 # vim: set noet sw=4 ts=4: