external/freetype/ExternalProject_freetype.mk |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 4e7f3692c9eb42a00797025289782baa69a42cc7
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Sun Jan 2 12:31:14 2022 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Sun Jan 2 20:29:14 2022 +0100

    Make external/freetype use -fPIC
    
    ...to prevent Library_pdfium from failing to link with
    
    > ld.lld: error: relocation R_X86_64_64 cannot be used against local 
symbol; recompile with -fPIC
    > >>> defined in 
workdir/UnpackedTarball/freetype/instdir/lib/libfreetype.a(ftinit.o)
    > >>> referenced by ftinit.c:89 (src/base/ftinit.c:89)
    > >>>               ftinit.o:(FT_Add_Default_Modules) in archive 
workdir/UnpackedTarball/freetype/instdir/lib/libfreetype.a
    
    etc., presumably since 8677e994d37329a28ca8278358a99d18b9cada69 "Simplify
    FONTCONFIG and FREETYPE tests" no longer implicitly forces use of system
    freetype on Linux
    
    Change-Id: I2743619768e2dd636ec431408fcb2871871504f1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127864
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/external/freetype/ExternalProject_freetype.mk 
b/external/freetype/ExternalProject_freetype.mk
index 032e0362917a..a3e0a7ca3e4b 100644
--- a/external/freetype/ExternalProject_freetype.mk
+++ b/external/freetype/ExternalProject_freetype.mk
@@ -18,6 +18,7 @@ $(call gb_ExternalProject_get_state_target,freetype,build) :
        $(call gb_ExternalProject_run,build,\
                $(gb_RUN_CONFIGURE) ./configure \
                        --disable-shared \
+                       --with-pic \
                        --without-zlib \
                        --without-brotli \
                        --without-bzip2 \

Reply via email to