Define FC_NO_MT=1 for tools mkfontscale build.

No idea what the host's atomic ops will be but we don't need them
because this tool is not multithreaded.

Fixes harmless warnings like

all ===> external/mit/xorg/tools/mkfontscale
/home/source/ab/HEAD-llvm/xsrc/external/mit/fontconfig/dist/src/fcinit.c:29:2: warning: #warning Could not find any system to define atomic_int macros, library may NOT be thread-safe. [-Wcpp]
 #warning Could not find any system to define atomic_int macros, library may NOT be thread-safe.
  ^
This commit is contained in:
riastradh 2016-02-28 22:12:26 +00:00
parent def0440dfd
commit f39627880d
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2015/07/23 08:03:26 mrg Exp $
# $NetBSD: Makefile,v 1.8 2016/02/28 22:12:26 riastradh Exp $
NOMAN= 1
@ -86,6 +86,11 @@ HOST_CPPFLAGS= -DFONTENC_NO_LIBFONT -DXFREE86_FT2 -DFONTENC_NO_LIBFONT \
-DFONT_ENCODINGS_DIRECTORY=\"${X11FONTDIR}/encodings/encodings.dir\" \
-DPACKAGE_STRING=\"NetBSD\ tools\ version\"
HOST_CPPFLAGS+= -DFT_CONFIG_OPTION_DISABLE_BZIP2
# If you make mkfontscale multithreaded, remove this and fix the
# fontconfig atomic ops.
HOST_CPPFLAGS+= -DFC_NO_MT=1
HOST_CPPFLAGS+= -I${FREETYPE}/include -I${DESTDIR}${X11INCDIR} \
-I${DESTDIR}${X11INCDIR}/freetype2