--- src/pdf/CMakeLists.txt.orig	2024-10-02 15:40:01 UTC
+++ src/pdf/CMakeLists.txt
@@ -70,7 +70,7 @@ add_dependencies(prepare_docs_Pdf generate_pdf_attribu
 #   TOOLCHAIN SETUP
 ##
 
-if(LINUX OR MINGW OR ANDROID)
+if(LINUX OR MINGW OR ANDROID OR FREEBSD)
     setup_toolchains()
 endif()
 
@@ -138,7 +138,7 @@ foreach(arch ${archs})
           v8_enable_webassembly=false
         )
 
-        if(LINUX OR ANDROID)
+        if(LINUX OR ANDROID OR FREEBSD)
             list(APPEND gnArgArg
                 is_cfi=false
                 ozone_auto_platforms=false
