diff options
-rw-r--r-- | x11-fonts/fontconfig/Makefile | 5 | ||||
-rw-r--r-- | x11-fonts/fontconfig/files/patch-src__fccompat.c | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/x11-fonts/fontconfig/Makefile b/x11-fonts/fontconfig/Makefile index f9a87398110a..8448a513a1c6 100644 --- a/x11-fonts/fontconfig/Makefile +++ b/x11-fonts/fontconfig/Makefile @@ -43,11 +43,6 @@ OPTIONS_DEFINE= DOCS .include <bsd.port.options.mk> -# work around fc-cache crash on arm platform -.if ${ARCH} == arm || ${ARCH} == armv6 -USE_GCC= any -.endif - post-install: .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/x11-fonts/fontconfig/files/patch-src__fccompat.c b/x11-fonts/fontconfig/files/patch-src__fccompat.c new file mode 100644 index 000000000000..eecdeffa6994 --- /dev/null +++ b/x11-fonts/fontconfig/files/patch-src__fccompat.c @@ -0,0 +1,15 @@ +There is an undiagnosed ARMv6 core dump in this code +as discovered in FreeBSD Bug 183536 when using clang. +Removing this code from ARM builds resolves it. + +--- src/fccompat.c.orig 2013-10-11 03:10:18 UTC ++++ src/fccompat.c +@@ -178,7 +178,7 @@ + } + + random_r(&fcrandbuf, &result); +-#elif HAVE_RANDOM ++#elif HAVE_RANDOM && !defined(__arm__) + static char statebuf[256]; + char *state; + static FcBool initialized = FcFalse; |