[cairo] building cairo-1.0.2 with MinGW
Tor Lillqvist
tml at iki.fi
Thu Oct 20 02:22:52 PDT 2005
V.Krishnakumar writes:
> undefined reference to `_global_image_glyph_cache_mutex'
> libs/cairo-font.o(.text+0x12b2):
You need to apply this trivial patch:
diff -ru2 /tmp/cairo-1.0.2/src/cairo-win32-surface.c ./src/cairo-win32-surface.c
--- /tmp/cairo-1.0.2/src/cairo-win32-surface.c Mon Oct 3 23:44:43 2005
+++ ./src/cairo-win32-surface.c Sun Oct 16 01:15:40 2005
@@ -1063,4 +1063,5 @@
CRITICAL_SECTION cairo_scaled_font_map_mutex;
CRITICAL_SECTION cairo_ft_unscaled_font_map_mutex;
+CRITICAL_SECTION _global_image_glyph_cache_mutex;
BOOL WINAPI
@@ -1076,4 +1077,5 @@
InitializeCriticalSection (&cairo_scaled_font_map_mutex);
InitializeCriticalSection (&cairo_ft_unscaled_font_map_mutex);
+ InitializeCriticalSection (&_global_image_glyph_cache_mutex);
break;
case DLL_PROCESS_DETACH:
@@ -1081,4 +1083,5 @@
DeleteCriticalSection (&cairo_scaled_font_map_mutex);
DeleteCriticalSection (&cairo_ft_unscaled_font_map_mutex);
+ DeleteCriticalSection (&_global_image_glyph_cache_mutex);
break;
}
--tml
More information about the cairo
mailing list