118 Commits
Author SHA1 Message Date
Caolán McNamara dfc2a54bce ofz: fix harfbuzz msan build
since:

commit 6a3e455381
Date:   Sat Aug 1 02:25:22 2026 +0300

    harfbuzz: pass -fvisibility=hidden as a meson option

==3201==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x555d9cd44009 in operator() /src/libreoffice/vcl/source/gdi/CommonSalLayout.cxx:663:38
    #1 0x555d9cd44009 in GenericSalLayout::LayoutText(vcl::text::ImplLayoutArgs&, SalLayoutGlyphsImpl const*) vcl/source/gdi/CommonSalLayout.cxx:684:25
    #2 0x555d9c96a880 in OutputDevice::ImplLayout(rtl::OUString const&, int, int, Point const&, long, std::__1::span<double const, 18446744073709551615ul>, std::__1::span<unsigned char const, 18446744073709551615ul>, SalLayoutFlags, vcl::text::TextLayoutCache const*, SalLayoutGlyphs const*, std::__1::optional<int>, std::__1::optional<int>, std::__1::optional<int>) const vcl/source/outdev/text.cxx:1269:36

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I43dd3901f78b33b85e9f8e224f287a145f4510fa
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9753
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit 8184a699b28e83f8209f73f66e0c7c2a43f2b2d9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209830
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-08-25 08:52:25 +02:00
Khaled Hosny 6a3e455381 harfbuzz: pass -fvisibility=hidden as a meson option
Instead of patching meson files.

Change-Id: Id90dbcd2c198c98e976bb3bff090a9f1bd75fcb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208906
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-08-01 03:31:41 +02:00
Khaled Hosny 91e486382b harfbuzz: upgrade to 14.3.0
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/14.3.0/harfbuzz-14.3.0.tar.xz

Drop Werror-unused-template.patch, upstream ignores -Wunused-template
now.

Change-Id: I784f1f8e9368efcb967b909814c0fe02734b8445
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208905
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-08-01 02:59:43 +02:00
Stephan Bergmann 0a654a90d2 external/harfbuzz: Silence new Clang 24 trunk -Werror,-Wunused-template
> In file included from ../src/hb-number.cc:26:
> In file included from ../src/hb.hh:560:
> ../src/hb-meta.hh:131:3: error: unused function template 'operator()' [-Werror,-Wunused-template]
>   131 |   operator () (T&& v) const HB_AUTO_RETURN (std::forward<T> (v))
>       |   ^~~~~~~~

etc.

Signed-off-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Change-Id: I69284c010e4970db55ecb6e1507186648b8b5271
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/7282
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit 6b03159992ce09f1b63a799ca99476c048758054)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208278
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 00:09:33 +02:00
Stephan Bergmann a3550ef87f Add support for C++29 to --with-latest-c++
...now that at least GCC 17 trunk supports it since
<https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=0c5c6249a2e9a75d2e7d1c6c434487c8dc077130>
"c++, libcpp: Add -std=c++2[9d] and -std=gnu++2[9d] options".  (But we need two
TODOs until Clang and Meson support it, too.)

Signed-off-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Change-Id: Idff90c0a9068072cdc60c1cf88998bbb39ef54b4
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4973
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit a015d0798cf846d10b712ac80451ba9678ff61d8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207166
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-23 14:58:50 +02:00
Khaled Hosny d82deb2d7b harfbuzz: upgrade to 13.0.0
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/13.0.0/harfbuzz-13.0.0.tar.xz

Drop thread.patch that is now included upstream.

Change-Id: I2ae3d79f28dccc499b8c62a72d75e2f57c9b5013
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200975
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-03-04 23:46:41 +01:00
Stephan Bergmann 8f6d4fb1a4 external/harfbuzz: Fix emscripten build
...after 7f1335390e "Build harfbuzz-subset",

> wasm-ld: error: --shared-memory is disallowed by hb-subset-input.cc.o because it was not compiled with 'atomics' or 'bulk-memory' features.
> em++: error: '/home/tdf/lode/emsdk/upstream/bin/wasm-ld @/tmp/emscripten__e1rcozh.rsp.utf-8' failed (returned 1)
> make[1]: *** [/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/desktop/Executable_soffice_bin.mk:10: /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/instdir/program/soffice.js] Error 1

(<https://ci.libreoffice.org/job/lo_daily_tb_linux_wasm/1338/>).  Probably
doesn't hurt to unconditionally add that thread_dep dependency here (which is
also unconditionally used for libharfbuzz, via harfbuzz_deps).

Change-Id: I6dd56a3ce61c855a734db1660d0b3280cbfdaf42
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199996
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-02-22 22:57:52 +01:00
Khaled Hosny 7f1335390e Build harfbuzz-subset
We will use it to subset fonts for embedding in PDF.

Change-Id: Ib35ee233c551da80831da09bbf1ad9a79eeeb04e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199570
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-02-20 22:28:24 +01:00
Tor Lillqvist 3229dddb53 Obey --enable-msvc-debug-runtime when building harfbuzz
Otherwise you will get linking errors if core is configured with that
option.

Change-Id: Id0982fb7f15f7d185b5fe4eaa15e905464d435f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197508
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Jenkins
2026-01-17 21:50:07 +01:00
Xisco Fauli f2557cfaae harfbuzz: upgrade to 12.2.0
* 0001-Fix-applying-synthetic-slight-to-glyph-origins-5629.patch.1
has been fixed upstream

Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/12.2.0/harfbuzz-12.2.0.tar.xz

Change-Id: I61c8edc0286389fe476b9ba84e8eac8f19f2016a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193444
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-11-05 11:47:06 +01:00
Xisco Fauli 68822e1bfe tdf#167963: patch upstream fix
See https://github.com/harfbuzz/harfbuzz/issues/5628

Change-Id: I05bffb1d5e291bd2a5f92bb87aa49bd46d9dc6b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193182
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-30 11:22:08 +01:00
Caolán McNamaraandNoel Grandin 2b515d095d upgrade pixman and cairo
Co-authored-by: Noel Grandin <noel.grandin@collabora.co.uk>

Change-Id: I21b8c772138b544d3192b786a6bae4c64ebcac94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191199
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-27 21:38:46 +02:00
Xisco Fauli 750ac43647 harfbuzz: upgrade to 11.4.3
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.4.3/harfbuzz-11.4.3.tar.xz

Change-Id: Ib1d5033eb63c4ec5fba6816e692166b42ea08087
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190157
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-08-25 11:57:48 +02:00
Stephan Bergmann 2c26112912 external/harfbuzz: Avoid UBSan nullptr-with-nonzero-offset
...as seen during CppunitTest_vcl_lifecycle,

> ../src/hb-vector.hh:447:33: runtime error: applying non-zero offset 18446744073709551264 to null pointer
>     #0 0x7ffb5ab18a06 in hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::shrink_vector(unsigned int) /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-vector.hh:447:33
>     #1 0x7ffb5ab1e1ba in hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::fini() /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-vector.hh:163:5
>     #2 0x7ffb5ab1e168 in hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::~hb_vector_t() /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-vector.hh:85:21
>     #3 0x7ffb5ab00c45 in AAT::kern_accelerator_data_t::~kern_accelerator_data_t() /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-aat-layout-kerx-table.hh:931:8
>     #4 0x7ffb5ab0039b in AAT::KerxTable<AAT::kerx>::accelerator_t::accelerator_t(hb_face_t*) /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-aat-layout-kerx-table.hh:1151:7
>     #5 0x7ffb5ab000cc in AAT::kerx_accelerator_t::kerx_accelerator_t(hb_face_t*) /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-aat-layout-kerx-table.hh:1198:42
>     #6 0x7ffb5ab00022 in hb_lazy_loader_t<AAT::kerx_accelerator_t, hb_face_lazy_loader_t<AAT::kerx_accelerator_t, 30u>, hb_face_t, 30u, AAT::kerx_accelerator_t>::create(hb_face_t*) /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-machinery.hh:266:19
>     #7 0x7ffb5aaffd4e in AAT::kerx_accelerator_t* hb_data_wrapper_t<hb_face_t, 30u>::call_create<AAT::kerx_accelerator_t, hb_face_lazy_loader_t<AAT::kerx_accelerator_t, 30u> >() const /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-machinery.hh:166:42
>     #8 0x7ffb5aaffa54 in hb_lazy_loader_t<AAT::kerx_accelerator_t, hb_face_lazy_loader_t<AAT::kerx_accelerator_t, 30u>, hb_face_t, 30u, AAT::kerx_accelerator_t>::get_stored() const /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-machinery.hh:229:26
>     #9 0x7ffb5aaff918 in hb_lazy_loader_t<AAT::kerx_accelerator_t, hb_face_lazy_loader_t<AAT::kerx_accelerator_t, 30u>, hb_face_t, 30u, AAT::kerx_accelerator_t>::get() const /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-machinery.hh:253:58
>     #10 0x7ffb5a9d3a78 in hb_lazy_loader_t<AAT::kerx_accelerator_t, hb_face_lazy_loader_t<AAT::kerx_accelerator_t, 30u>, hb_face_t, 30u, AAT::kerx_accelerator_t>::operator->() const /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-machinery.hh:213:50
>     #11 0x7ffb5a9bc608 in hb_aat_layout_has_positioning /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-aat-layout.cc:359:10
>     #12 0x7ffb5b1169be in hb_ot_shape_planner_t::compile(hb_ot_shape_plan_t&, hb_ot_shape_plan_key_t const&) /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-ot-shape.cc:158:19
>     #13 0x7ffb5b117ffc in hb_ot_shape_plan_t::init0(hb_face_t*, hb_shape_plan_key_t const*) /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-ot-shape.cc:239:11
>     #14 0x7ffb5b19307b in hb_shape_plan_create2 /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-shape-plan.cc:261:7
>     #15 0x7ffb5b1954bd in hb_shape_plan_create_cached2 /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-shape-plan.cc:554:33
>     #16 0x7ffb5b199535 in hb_shape_full /workdir/UnpackedTarball/harfbuzz/builddir/../src/hb-shape.cc:145:33
>     #17 0x7ffb57ffa071 in GenericSalLayout::LayoutText(vcl::text::ImplLayoutArgs&, SalLayoutGlyphsImpl const*) /vcl/source/gdi/CommonSalLayout.cxx:606:23
>     #18 0x7ffb56c08519 in OutputDevice::ImplLayout(rtl::OUString const&, int, int, Point const&, long, std::span<double const, 18446744073709551615ul>, std::span<unsigned char const, 18446744073709551615ul>, SalLayoutFlags, vcl::text::TextLayoutCache const*, SalLayoutGlyphs const*, std::optional<int>, std::optional<int>, std::optional<int>) const /vcl/source/outdev/text.cxx:1259:36
>     #19 0x7ffb56c0fafb in OutputDevice::GetPartialTextArray(rtl::OUString const&, std::__debug::vector<double, std::allocator<double> >*, int, int, int, int, bool, vcl::text::TextLayoutCache const*, SalLayoutGlyphs const*, std::optional<tools::Rectangle>*) const /vcl/source/outdev/text.cxx:791:22
>     #20 0x7ffb56c0a375 in OutputDevice::GetTextArray(rtl::OUString const&, std::__debug::vector<double, std::allocator<double> >*, int, int, bool, vcl::text::TextLayoutCache const*, SalLayoutGlyphs const*, std::optional<tools::Rectangle>*) const /vcl/source/outdev/text.cxx:760:12
>     #21 0x7ffb56c0a1b0 in OutputDevice::GetTextWidthDouble(rtl::OUString const&, int, int, vcl::text::TextLayoutCache const*, SalLayoutGlyphs const*) const /vcl/source/outdev/text.cxx:632:12
>     #22 0x7ffb56c0a058 in OutputDevice::GetTextWidth(rtl::OUString const&, int, int, vcl::text::TextLayoutCache const*, SalLayoutGlyphs const*) const /vcl/source/outdev/text.cxx:624:21
>     #23 0x7ffb5943b739 in FontMetricData::ImplInitTextLineSize(OutputDevice const*) /vcl/source/font/fontmetric.cxx:262:30
>     #24 0x7ffb56baf404 in OutputDevice::ImplNewFont() const /vcl/source/outdev/font.cxx:741:38
>     #25 0x7ffb56ba1d10 in OutputDevice::InitFont() const /vcl/source/outdev/font.cxx:644:10
>     #26 0x7ffb56c0a463 in OutputDevice::GetTextHeight() const /vcl/source/outdev/text.cxx:637:10
>     #27 0x7ffb55ea641c in vcl::Window::GetTextHeight() const /vcl/source/window/window3.cxx:66:65
>     #28 0x7ffb55ee73fc in vcl::Window::ImplInitAppFontData(vcl::Window const*) /vcl/source/window/window.cxx:1185:40
>     #29 0x7ffb55ebd975 in vcl::Window::ImplInit(vcl::Window*, long, SystemParentData*) /vcl/source/window/window.cxx:1179:9
>     #30 0x7ffb5604436f in PushButton::ImplInit(vcl::Window*, long) /vcl/source/control/button.cxx:684:13
>     #31 0x7ffb56054dce in PushButton::PushButton(vcl::Window*, long) /vcl/source/control/button.cxx:1267:5
>     #32 0x7ffb31a7b56a in ScopedVclPtrInstance<PushButton>::ScopedVclPtrInstance<std::nullptr_t, int>(std::nullptr_t&&, int&&) /include/vcl/vclptr.hxx:361:45
>     #33 0x7ffb31a4ee34 in LifecycleTest::testCast() /vcl/qa/cppunit/lifecycle.cxx:57:40

(<https://ci.libreoffice.org//job/lo_ubsan/3658/>)

Change-Id: I00d0b9524042641170d6d2e9933a0f71fc6a6e60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190045
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2025-08-22 12:31:03 +02:00
Xisco Fauli 77a799f556 harfbuzz: upgrade to 11.3.3
* 0001-const-up-modifier_combining_marks.patch has been fixed
upstream

Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.3.3/harfbuzz-11.3.3.tar.xz

Change-Id: Iaeba7ca2988cfc3b150003a0bc4169ab8bde5627
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188691
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-01 09:06:00 +02:00
Caolán McNamara 88909f7a50 const up harfbuzz
Change-Id: I0efc1f7be0275e43c7b386fa0a97fe9310d38762
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187828
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-14 20:33:37 +02:00
Christian Lohmaier bd40600042 Revert "tdf#159529 clear hb_ot_face_t data after fetching 'sbix' and 'glyf' tables"
This reverts commit af47a78e11.

Reason for revert: seems to cause regression/crash tdf#167455
after the update to harfbuzz 11.2
See also https://github.com/harfbuzz/harfbuzz/issues/5386 that confirms the crash to be related to the patch

Change-Id: I359f716afbc8d94fbdb25e600827ac3c41c2ae0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187698
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2025-07-12 09:44:44 +02:00
Xisco Fauli 542dc75792 harfbuzz: upgrade to 11.2.1
* 0001-buffer-Allow-unsafe_to_break-whole-buffer-to-succeed.patch.1
has been fixed upstream

Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.2.1/harfbuzz-11.2.1.tar.xz

Change-Id: I8b215831e702529881c8b2529bde1afd2dd95b8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185246
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-05-13 11:48:46 +02:00
Christian Lohmaier 9430b6549a use meson as an external when building with fully-internal python
people didn't read configure's warnings and systemwide installed copy of
meson just causes too many conflicts or even if people read the message
they'd still break the idea behind fully-internal python.

If the user specifies MESON in autogen.input it will be called as
specified, if configure autodetects it, it will be prefixed with the
python command used for building.

meson requires python 3.7, so if harfbuzz is enabled configure now also
now checks for that (can by bypassed by setting PYTHON in autogen.input

Change-Id: I6535c9f421fe865b389a87252163ab99d617b7b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185032
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-05-09 19:54:07 +02:00
Caolán McNamara 6deb75dfee use final upstream harfbuzz fix
Change-Id: Ibc57f684d45ab59332f22546f36f0e5bf79c5d23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185067
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-05-08 22:40:39 +02:00
Caolán McNamara 404918836d crashtesting: checkGlyphsEqual asserts with harfbuzz-11.2.0
see:

https: //gerrit.libreoffice.org/c/core/+/184761
https: //github.com/harfbuzz/harfbuzz/pull/5315
Change-Id: I53442b3b0a917442e6871e60b53273f0bb5b4acf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184988
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-05-06 15:16:40 +02:00
Christian Lohmaier 8ff06494e4 harfbuzz: use -fvisibility=hidden
Change-Id: I3fa8cd03f91ffdb0463bcb2d67410bac9085a7d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184819
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-05-05 13:51:52 +02:00
Christian Lohmaier 93aa7e615b harfbuzz: create symbols with --enable-symbols
--enable-symbols can be used independently (and selectively) from
--enable-debug or --enable-dbgutil, so if neither of those are
specified, check whether symbols should be created and pass the flags to
c_args / cpp_args

Change-Id: I6d5bc9b7857a2538b71efb820534c2a18d1dfd3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184753
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-04-30 11:26:34 +02:00
Christian Lohmaier 0fccc92e32 fix harfbuzz with --enable-debug on win (msvc debug runtime mismatch)
debug type in meson uses flags to use debug versions of the vscrt, this
causes issues when using --enable-debug since the rest of the build only
uses the debug runtime if the --enable-dbgutil switch is used. These two
being misaligned then causes linker failures, harfbuzz using the debug
runtime and rest of LO using the release version is not compatible:

libharfbuzz.a(hb-blob.cc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in drawmode.o

the debugoptimized build-type doesn't use the debug runtime and also
uses optimization flags that don't interfere with debugging. The runtime
could also be forced independently using -Db_vscrt=<mdd,md,mtd,mt>, but
the automatic selection from the buildtype/the additional optimization
in the --enable-debug case should be fine.

Change-Id: I9263fa7b6fdb71ab9efb00ae634ddf16453e50cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184751
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2025-04-30 11:26:27 +02:00
Michael Weghorn 56d64a40c1 harfbuzz: Honor USE_LD, don't force specific linker if unset
With the harfbuzz build having been switched to meson
in commit

    commit ae24fc8c63
    Date:   Tue Apr 8 12:19:31 2025 +0200

        harfbuzz: migrate to meson

, building harbuzz in my local Android build using
an autogen.input containing

    --with-android-ndk=$HOME/Android/Sdk/ndk/28.0.13004108
    --with-android-sdk=$HOME/Android/Sdk
    --with-distro=LibreOfficeAndroidX86_64
    --enable-sal-log
    --enable-android-editing
    --with-external-tar=/home/michi/development/libreoffice-external
    --disable-ccache
    --with-jdk-home=/usr/lib/jvm/java-21-openjdk-amd64/

started to fail because it couldn't detect the linker to use.
This is caused by `c_ld` and `cpp_ld` explicitly being set
to the *compiler* command in `cross-file.txt` that meson evaluates
which is then used by meson to set the *linker* to use via
`-fuse-ld=<command>` for gcc or clang (see [1]).
However, ccache or clang are not suitable to be used as linkers.

Fix that problem by evaluating the USE_LD variable and using the
linker set this way.
(It is `USE_LD=-fuse-ld=lld` for above-mentioned Android build.)

If it's not set, then having an empty `c_ld` and `cpp_ld` is fine
and will result in no particular linker being forced, i.e. let meson
use its default logic.

Leaving it empty is also fine on Windows. Quoting Christian
Lohmaier's comment [2]:

> re windows: linker can be empty, it then would try link from the vsenv,
> but for static libraries it defaults to using LIB / so in the case
> for harfbuzz c_ld / cpp_ld are in fact ignored/unused. for this case
> ar setting would be used to override.

Also, replace "X86_64" by "x86_64" for the `cpu_family`
to address the

    WARNING: Unknown CPU family X86_64, please report this at https://github.com/mesonbuild/meson/issues/new

warning seen in the below output.

Thanks to Christian Lohmaier on whose feedback on earlier
versions of the Gerrit change this is heavily based!

---------------------------------------------------------

Error seen previously with an `--enable-ccache` build, where
`-fuse-ld=/usr/bin/ccache` would be used:

    $ make harfbuzz
    cd /home/michi/development/git/libreoffice-WORKTREE-android/external/harfbuzz && make -j 32 -rs
    [LOC] top level modules: harfbuzz
    WARNING: Unknown CPU family X86_64, please report this at https://github.com/mesonbuild/meson/issues/new
    The Meson build system
    Version: 1.7.0
    Source dir: /home/michi/development/git/libreoffice-WORKTREE-android/workdir/UnpackedTarball/harfbuzz
    Build dir: /home/michi/development/git/libreoffice-WORKTREE-android/workdir/UnpackedTarball/harfbuzz/builddir
    Build type: cross build
    Project name: harfbuzz
    Project version: 11.0.1

    meson.build:1:0: ERROR: Unable to detect linker for compiler `/usr/bin/ccache /home/michi/Android/Sdk/ndk/28.0.13004108/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target x86_64-linux-android21 -no-canonical-prefixes -ffunction-sections -fdata-sections -Qunused-arguments -Wl,--version -fuse-ld=/usr/bin/ccache`
    stdout:
    stderr: /usr/bin/ccache: unrecognized option '--hash-style=both'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    [...]

---------------------------------------------------------

Error seen previously with a `--disable-ccache build`, where
`-fuse-ld=/home/michi/Android/Sdk/ndk/28.0.13004108/toolchains/llvm/prebuilt/linux-x86_64/bin/clang`
would be used:

    $ make harfbuzz
    cd /home/michi/development/git/libreoffice-WORKTREE-android/external/harfbuzz && make -j 32 -rs
    [LOC] harfbuzz
    [UPK] harfbuzz-11.0.1.tar.xz
    [LOC] top level modules: harfbuzz
    [PAT] harfbuzz
    WARNING: Unknown CPU family X86_64, please report this at https://github.com/mesonbuild/meson/issues/new
    The Meson build system
    Version: 1.7.0
    Source dir: /home/michi/development/git/libreoffice-WORKTREE-android/workdir/UnpackedTarball/harfbuzz
    Build dir: /home/michi/development/git/libreoffice-WORKTREE-android/workdir/UnpackedTarball/harfbuzz/builddir
    Build type: cross build
    Project name: harfbuzz
    Project version: 11.0.1

    meson.build:1:0: ERROR: Unable to detect linker for compiler `/home/michi/Android/Sdk/ndk/28.0.13004108/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target x86_64-linux-android21 -no-canonical-prefixes -ffunction-sections -fdata-sections -Qunused-arguments -Wl,--version -fuse-ld=/home/michi/Android/Sdk/ndk/28.0.13004108/toolchains/llvm/prebuilt/linux-x86_64/bin/clang`
    stdout: Android (12896553, +pgo, +bolt, +lto, +mlgo, based on r530567c) clang version 19.0.0 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/michi/Android/Sdk/ndk/28.0.13004108/toolchains/llvm/prebuilt/linux-x86_64/bin

    stderr: clang: error: unknown argument: '--hash-style=both'
    clang: error: unknown argument: '--eh-frame-hdr'
    clang: error: unknown argument: '-m'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    [...]

[1] https://mesonbuild.com/Machine-files.html#binaries
[2] https://gerrit.libreoffice.org/c/core/+/184459/comments/dbb124af_3c49b1e0

Change-Id: I0793d7cc3428a13a050b5989a9e326b1b80595f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184459
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-04-30 07:29:00 +02:00
Xisco Fauli 477689c58d harfbuzz: upgrade to 11.2.0
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.2.0/harfbuzz-11.2.0.tar.xz

Change-Id: Ib9910d1a9e1a657b1d26f05354a7213d48b85e83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184761
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-04-29 15:05:45 +02:00
Stephan Bergmann dfbdb858e2 Instead of warning and failing, just do the right thing
After df83ad933b "fix harfbuzz build with
--enable-python=fully-internal on linux", my --enable-python=fully-internal
Linux builds that auto-detect MESON=/usr/bin/meson started to emit a configure
warning

> * WARNING : using internal python with a meson launcher might not work, best to use MESON=/path/to/meson.py in autogen.input

and then fail to build ExternalProject_harfbuzz with

> Traceback (most recent call last):
>   File "/home/sberg/lo/core/instdir/program/python-core-3.11.12/lib/importlib/metadata/__init__.py", line 563, in from_name
>     return next(cls.discover(name=name))
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> StopIteration
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/usr/bin/meson", line 33, in <module>
>     sys.exit(load_entry_point('meson==1.7.0', 'console_scripts', 'meson')())
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/bin/meson", line 22, in importlib_load_entry_point
>     for entry_point in distribution(dist_name).entry_points
>                        ^^^^^^^^^^^^^^^^^^^^^^^
>   File "/home/sberg/lo/core/instdir/program/python-core-3.11.12/lib/importlib/metadata/__init__.py", line 982, in distribution
>     return Distribution.from_name(distribution_name)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/home/sberg/lo/core/instdir/program/python-core-3.11.12/lib/importlib/metadata/__init__.py", line 565, in from_name
>     raise PackageNotFoundError(name)
> importlib.metadata.PackageNotFoundError: No package metadata was found for meson

So better add back the idea from 736998ccef "Only
run meson from python when it apparently needs to be" (that had been removed
with df83ad933b "fix harfbuzz build with
--enable-python=fully-internal on linux") to treat a Meson executable that
doesn't advertise itself as being a Python script as just any plain executable,
which we don't throw at our --enable-python=fully-internal interpreter.  (Just
like, say, an Emscripten build of LO uses an emcc compiler executable that
internally uses Python, and onto which we don't force our
--enable-python=fully-internal interpreter, either.)

Change-Id: I13965ef08043f350e9614bd61a469708b7faf27b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184626
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-04-25 20:38:53 +02:00
Christian Lohmaier d80de8925e harfbuzz with fully-internal python: extend the chmod to all python scripts
depending on the meson version also other scripts like
src/relative_to.py are run and cause the same problem (namely picking up
system python instead of the python meson was run with, see description
of df83ad933b / the commend in the
makefile for more details

Change-Id: I2c75d9a12455495174be7c53a1cca5d5a8f45f8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184622
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-04-25 14:41:56 +02:00
Christian Lohmaier df83ad933b fix harfbuzz build with --enable-python=fully-internal on linux
if executable python scripts are run as build commands, they can pick up
system python instead of the LO-internal python and that then can cause
incompatibilities, ranging from just being too old and failing with
stuff like
AttributeError: 'str' object has no attribute 'isascii'
or attempting to load incompatible modules
[…]
    from . import _compiler, _parser
  File "/home/michi/development/git/libreoffice/instdir/program/python-core-3.11.12/lib/re/_compiler.py", line 18, in <module>
    assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch

So remove the executable bit to make sure the scripts are run with the
python specified for the build, either internal or the system one.

Also undo the workaround added in 736998ccef
(Only run meson from python when it apparently needs to be)
While this can help running meson itself if the distro has different
python versions but cannot be run with the default python3 / the python
version used to run meson is likely newer and then also avoids most of
the issues above, it still is bad to mix build-tool python and the
commands executed by the buildtool.

For the cornercase of meson not being able to be executed by the python
used for the build, the solution is to either specify
PYTHON=/hatever/python/system/meson/uses (for the non-fully-internal
case) and/or using a release tarball of meson and pointing
MESON=/path/to/meson.py in autogen.input (can be used with both system
and internal python)

Change-Id: Id8e3ea88e0caa4afa872a62207b081c072496903
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184271
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-04-22 10:11:22 +02:00
Stephan Bergmann 736998ccef Only run meson from python when it apparently needs to be
...where "apparently needs to be" is approximated by the meson executable being
named *.py (which, in turn is approximated by some GNU Make $(filter) check).
This follows up on ae24fc8c63 "harfbuzz: migrate
to meson" and should avoid e.g. issues with --enable-python=fully-internal on
Linux like

> Traceback (most recent call last):
>   File "/home/sberg/lo/core/instdir/program/python-core-3.11.12/lib/importlib/metadata/__init__.py", line 563, in from_name
>     return next(cls.discover(name=name))
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> StopIteration
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/usr/bin/meson", line 33, in <module>
>     sys.exit(load_entry_point('meson==1.7.0', 'console_scripts', 'meson')())
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/bin/meson", line 22, in importlib_load_entry_point
>     for entry_point in distribution(dist_name).entry_points
>                        ^^^^^^^^^^^^^^^^^^^^^^^
>   File "/home/sberg/lo/core/instdir/program/python-core-3.11.12/lib/importlib/metadata/__init__.py", line 982, in distribution
>     return Distribution.from_name(distribution_name)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/home/sberg/lo/core/instdir/program/python-core-3.11.12/lib/importlib/metadata/__init__.py", line 565, in from_name
>     raise PackageNotFoundError(name)
> importlib.metadata.PackageNotFoundError: No package metadata was found for meson
> make[1]: *** [/home/sberg/lo/core/external/harfbuzz/ExternalProject_harfbuzz.mk:47: /home/sberg/lo/core/workdir/ExternalProject/harfbuzz/build] Error 1

(<https://gerrit.libreoffice.org/c/core/+/183345/22#message-66c17b20610944c79d6d7206a62869ad430c3a60>
"harfbuzz: migrate to meson")

Change-Id: I44da7aebdc35a4be838046f0b065f1b646487156
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184254
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-04-16 12:22:51 +02:00
Khaled Hosny 71ed0680be tdf#161981, tdf#157922, tdf#163892 Upgrade HarfBuzz to 11.0.1
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/tag/11.0.1

Change-Id: Id3a6c2c54dde2530ced66a7f971a23aa2fdb815f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184176
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2025-04-14 20:31:02 +02:00
Christian Lohmaier ae24fc8c63 harfbuzz: migrate to meson
Change-Id: I33aa7ca814409b39b9adb7da1d168c5ebb11b14d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183345
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2025-04-14 18:35:42 +02:00
Xisco Fauli 59c123d62a ICU: fix aclocal dependency
Patch configure directly instead of configure.ac

Change-Id: Iaaf3e10dc435d5d8f546c009b27c9a4aa7c09141
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173315
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-13 12:08:30 +02:00
Xisco Fauli 994834e072 ICU: upgrade to 75.1
Downloaded from https://github.com/unicode-org/icu/releases/tag/release-75-1

Change-Id: I882c57bf5ab613dc71f7ae1c31305596e1ca791f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168750
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-12 12:09:09 +02:00
Christian Lohmaier 875a1bf2e1 makefile simplification: replace $(call gb_UnpackedTarball_get_dir,foo)
…by a simple/static $(gb_UnpackedTarball_workdir)/foo
see also 0c4c84a14b

Change-Id: I8e6aa55c85534c4446556548910c950ddbe7c6fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167163
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-05-06 11:40:45 +02:00
Patrick Luby af47a78e11 tdf#159529 clear hb_ot_face_t data after fetching 'sbix' and 'glyf' tables
The 'sbix' and 'glyf' tables can be very large for color emoji fonts
so clear any cached data in hb_ot_face_t after fetching that table's
extents.

Change-Id: Id5deda9114b7199a4194ff16879e5791acd1cd82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163674
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-02-21 10:53:23 +01:00
Taichi Haradaguchi 21d0534d8c Upgrade Harfbuzz to 8.0.0
Change-Id: I04d81509c50f0335d201b5286460989f526b58f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154233
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-07-12 02:20:53 +02:00
Khaled Hosny f1998c01bf tdf137553: Fix advance width for text using Graphite fonts
This is a HarfBuzz bug and it was reported upstream.

Change-Id: Ibf945d30f57c7fb847b63c40f5a7b2903958ab89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154213
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
2023-07-08 18:59:50 +02:00
Taichi Haradaguchi 8492195582 Upgrade Harfbuzz to 7.3.0
Release Notes:
https://github.com/harfbuzz/harfbuzz/releases/tag/7.2.0 (v7.2.0)
https://github.com/harfbuzz/harfbuzz/releases/tag/7.3.0 (v7.3.0)

Change-Id: I4f57b7e829f2356b5e2b442ff00df555121c0e66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153729
Tested-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-07-01 07:10:25 +02:00
Khaled Hosny 40e43ae633 No need to fiddle with ICU UChar typedef anymore
The affected external dependencies should be building with c++11 by now
already.

Change-Id: I0d1f8aed6ed28f510f456a368b724c3c4eeb3240
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153389
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
2023-06-21 16:59:39 +02:00
Taichi Haradaguchi b80e0165af Upgrade Harfbuzz to 7.1.0
* Fixes CVE-2023-25193.
* if Harfbuzz >= 7.0.0, uses hb_font_draw_glyph()
  instead of hb_font_get_glyph_shape().
* Update URL in README.

Change-Id: Id234c2b459c40ddac340731b44889b104e03a1e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148743
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2023-03-23 11:55:58 +00:00
Khaled Hosny a881850d58 vcl: Avoid the need to patch HarfBuzz
Reverts parts of d552b4a549 and
97e2e73e87.

Instead of patching HarfBuzz, lets make use of the already mmap’ed file
we use with FreeType.

Change-Id: Ia81222118162a30cadb8c988bc477ad3ce36166d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147410
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-02-22 09:02:40 +00:00
Tor Lillqvist d552b4a549 Enable opening of downloaded fonts only in ForKit in Online
We want that only the ForKit process needs to have access to new font
files added to a Collabora Online instance dynamically by downloading
from a server. There are however many locations in the Kit process, in
core and in external libraries like harfbuzz, where the code wants to
open a font file.

Handle this so that the ForKit process opens such a downloaded font
file and doesn't close it. The file descriptor is thus inherited by
Kit processes.  The font file pathname passed on to other code is a
fake on in the format "/:FD:/%d" where the %d is the file descriptor
of the opened font file. Add checks in all places where font files are
opened, look for this special pathname format, and modify the code to
just dup() the already open file descriptor in that case.

All this is relevant for Linux only, as Collabora Online runs on
Linux.

Do the above for harfbuzz, cairo, fontconfig, and freetype.

In addition make sure that these libraries (except harfbuzz which
needs to be a static library and freetype) when bundled, on Linux, are
built as shared libraries, and won't be confused with the
corresponding system libraries by making sure their sonames are
different.

Change-Id: Ib059cb27e1637d07bb709249abd0d984f948caa9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140714
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146341
Tested-by: Jenkins
2023-02-09 13:47:02 +00:00
Khaled Hosny e272fd31b1 Update HarfBuzz to 6.0.0
Change-Id: Id371a53a126f2b95b17e642a9c63adafd5aa3d33
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144394
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-12-17 22:44:37 +00:00
Caolán McNamara da4a0d1520 add in latest harfbuzz effort
the document still fails for me, but in a new way which suggests
a possible problem on our side.

Change-Id: Ic38259653a43b39f9330adc503d085a896c15d2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143246
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-25 09:52:21 +01:00
Caolán McNamara ae72d9cc7b backport recent libreoffice-related harfbuzz fixes
Change-Id: I1ff1b6291e9799d95477334f2726132ddc99442f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143208
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-24 13:17:20 +01:00
Caolán McNamara b7badb5519 use harfbuzz upstream fix instead of workaround
drop temp workaround for problem seen with tdf119074-1.odt

i.e. apply https://github.com/harfbuzz/harfbuzz/pull/3874
for https://github.com/harfbuzz/harfbuzz/issues/3824

Change-Id: I42373f2282d30d7e45ee88b654d3df40f3a6384b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142815
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-17 10:31:35 +01:00
Khaled Hosny 4e72f70c79 Update HarfBuzz to 5.1.0
Dropping negativeadvance.patch that was applied upstream.

Change-Id: I8eba49d2d158c0c29911f4079315ed0bf87b7fa6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137648
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-07-31 23:23:30 +02:00
Luboš Luňák 1ffd6897dd try to use also proper debug LDFLAGS for externals libraries
This is basically ea68de2968 but
for LDFLAGS. A number of external libs cannot use this because
their libtool mishandles -fuse-ld.

Change-Id: Idee379eb0a3afb475b536519ee3de064b4e218f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133639
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-01 05:47:22 +02:00
Luboš Luňák ea68de2968 use gb_DEBUGINFO_FLAGS consistently in gbuild ExternalProject's
A number of them didn't use it at all, others had it hand-written
in various ways.

Change-Id: Iaf86325f9cdc032926bac917dc3eef4e34661544
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132818
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-12 13:57:32 +02:00