Files
core/desktop/CustomTarget_soffice_bin-emscripten-exports.mk
Stephan Bergmann 5c357a4c66 Fix plain LOWA build
...after 3645088025 "Experimental Emscripten Qt6
--enable-emscripten-proxy-to-pthread ersatz" made it fail with

> em++: error: undefined exported symbol: "__ZN10emscripten8internal13MethodInvokerINS0_3rvp11default_tagEMN7qstdweb13EventListenerEFvNS_3valEEvPS5_JS6_EE6invokeERKS8_S9_PNS_7_EM_VALE" [-Wundefined] [-Werror]

when linking Executable_soffice_bin

Change-Id: Ia8089e0b7f6330b42ffcdeba80cc8636bf1ea314
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181492
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-02-12 16:45:56 +01:00

29 lines
1.4 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CustomTarget_CustomTarget,desktop/soffice_bin-emscripten-exports))
$(eval $(call gb_CustomTarget_register_targets,desktop/soffice_bin-emscripten-exports, \
exports \
))
$(gb_CustomTarget_workdir)/desktop/soffice_bin-emscripten-exports/exports: \
$(SRCDIR)/desktop/util/Executable_soffice_bin-emscripten-exports \
$(gb_CustomTarget_workdir)/bridges/gcc3_wasm/exports
# Prior to <https://github.com/emscripten-core/emscripten/commit/
# 7baa690ed4bf801a411130c7137ce830b93120f3> "Allow comments in response files. (#21330)" towards
# emsdk 3.1.54, comment lines were not supported, so filter them out here for now:
grep -v '^#' $(SRCDIR)/desktop/util/Executable_soffice_bin-emscripten-exports >$@
cat $(gb_CustomTarget_workdir)/bridges/gcc3_wasm/exports >>$@
ifeq ($(ENABLE_QT6)-$(ENABLE_EMSCRIPTEN_JSPI)-$(ENABLE_EMSCRIPTEN_PROXY_TO_PTHREAD),TRUE-TRUE-)
printf '__ZN10emscripten8internal13MethodInvokerINS0_3rvp11default_tagEMN7qstdweb13EventListenerEFvNS_3valEEvPS5_JS6_EE6invokeERKS8_S9_PNS_7_EM_VALE\n' >>$@
endif
# vim: set noet sw=4 ts=4: