configure.ac                              |   18 ++++++++++++++----
 external/libeot/ExternalProject_libeot.mk |    1 +
 2 files changed, 15 insertions(+), 4 deletions(-)

New commits:
commit 77833b757348f226a412801f9805ba4f2a68f87d
Author:     Tomaž Vajngerl <[email protected]>
AuthorDate: Wed May 7 22:20:47 2025 +0900
Commit:     Miklos Vajna <[email protected]>
CommitDate: Fri May 9 10:30:00 2025 +0200

    make libeot enabled by default on Linux and macOS
    
    Instead of explicitly enabling the library with --enable-eot,
    there is now --disable-eot to disable using libeot, which is now
    enabled by default, but only on Linux and macOS.
    
    libeot is needed to support reading embedded fonts from PPTX files,
    which use to store the fonts in (compressed or not) EOT format and
    without this library, it is a compatibility problem.
    
    Change-Id: I5ab733fb411cb81137be6834cc970b3034426330
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184697
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185045
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/configure.ac b/configure.ac
index 9d6f411515c6..c23ce6c80fdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1880,10 +1880,20 @@ libo_FUZZ_ARG_ENABLE(gstreamer-1-0,
         [Disable building with the gstreamer 1.0 avmedia backend.]),
 ,test "${enable_gstreamer_1_0+set}" = set || enable_gstreamer_1_0=yes)
 
-libo_FUZZ_ARG_ENABLE([eot],
-    [AS_HELP_STRING([--enable-eot],
-        [Enable support for Embedded OpenType fonts.])],
-,test "${enable_eot+set}" = set || enable_eot=no)
+# Enable by default on Linux and macOS only
+if test $_os = Darwin -o $_os = Linux; then
+    libo_FUZZ_ARG_ENABLE([eot],
+        [AS_HELP_STRING([--disable-eot],
+            [Disable support for Embedded OpenType fonts.])],
+    ,test "${enable_eot+set}" = set || enable_eot=yes)
+else
+    libo_FUZZ_ARG_ENABLE([eot],
+        [AS_HELP_STRING([--enable-eot],
+            [Enable support for Embedded OpenType fonts.])],
+    ,test "${enable_eot+set}" = set || enable_eot=no)
+fi
+
+
 
 libo_FUZZ_ARG_ENABLE(cve-tests,
     AS_HELP_STRING([--disable-cve-tests],
diff --git a/external/libeot/ExternalProject_libeot.mk 
b/external/libeot/ExternalProject_libeot.mk
index 6e5f465333cc..c8f1b3b8b122 100644
--- a/external/libeot/ExternalProject_libeot.mk
+++ b/external/libeot/ExternalProject_libeot.mk
@@ -23,6 +23,7 @@ $(call gb_ExternalProject_get_state_target,libeot,build) :
                        --enable-static \
                        --disable-shared \
                        --disable-debug \
+                       $(gb_CONFIGURE_PLATFORMS) \
                && $(MAKE) $(if $(verbose),V=1) \
        )
        $(call gb_Trace_EndRange,libeot,EXTERNAL)

Reply via email to