]> git.sesse.net Git - vlc/commitdiff
Fix build without fontconfig nor optimizations.
authorAlexis Ballier <aballier@gentoo.org>
Thu, 24 Sep 2009 19:58:36 +0000 (21:58 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Sep 2009 20:11:16 +0000 (23:11 +0300)
Configuring vlc with --disable-fontconfig and --disable-optimizations makes it fail to build the freetype plugin.
At higher optimizations levels, gcc performs dead code elimitation which does not happen at -O0, then the linker is looking for functions that are defined only when fontconfig is enabled.

References: https://bugs.gentoo.org/show_bug.cgi?id=281963

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/misc/freetype.c

index b00a50cc4a6b5ac639eecd7eb70e875b8d2464be..dd89eed1e5fe072a9c070a6ccc66b1023e962909 100644 (file)
@@ -2367,6 +2367,33 @@ static char* FontConfig_Select( FcConfig* priv, const char* family,
     FcPatternDestroy( p_pat );
     return strdup( (const char*)val_s );
 }
+#else
+
+static void SetupLine( filter_t *p_filter, const char *psz_text_in,
+                       uint32_t **psz_text_out, uint32_t *pi_runs,
+                       uint32_t **ppi_run_lengths, ft_style_t ***ppp_styles,
+                       ft_style_t *p_style )
+{
+        VLC_UNUSED(p_filter);
+        VLC_UNUSED(psz_text_in);
+        VLC_UNUSED(psz_text_out);
+        VLC_UNUSED(pi_runs);
+        VLC_UNUSED(ppi_run_lengths);
+        VLC_UNUSED(ppp_styles);
+        VLC_UNUSED(p_style);
+}
+
+static ft_style_t *GetStyleFromFontStack( filter_sys_t *p_sys,
+        font_stack_t **p_fonts, bool b_bold, bool b_italic,
+        bool b_uline )
+{
+        VLC_UNUSED(p_sys);
+        VLC_UNUSED(p_fonts);
+        VLC_UNUSED(b_bold);
+        VLC_UNUSED(b_italic);
+        VLC_UNUSED(b_uline);
+        return NULL;
+}
 #endif
 
 static void FreeLine( line_desc_t *p_line )