Fix ttfautohint build by forcing autoconf to detect max_align_t. This was

recently added to stddef.h behind a conditional. There is a gnulib problem
when detecting this (here it's because tests run with --std=gnu99 but some
code is built with --std=gnu++11, exposing the definition in the system
headers, and causing a conflict). Figured out by kettenis@.

This is the only port affected so it makes sense to fix it here rather than
provide a workaround in the system headers. ok jasper@ (maintainer).
This commit is contained in:
sthen 2017-01-09 14:41:35 +00:00
parent c5a923d5ef
commit 4f7bc9590b

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.2 2016/11/30 18:52:36 jasper Exp $
# $OpenBSD: Makefile,v 1.3 2017/01/09 14:41:35 sthen Exp $
COMMENT= automated hinting process based on FreeType's autohinter #'
V = 1.6
REVISION = 0
DISTNAME = ttfautohint-${V}
CATEGORIES = graphics
@ -30,4 +31,12 @@ CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --without-doc \
--without-qt
# gnulib problem: autoconf tests run with -std=gnu99, which hides the
# max_align_t definition (like it should), but then some of the code gets
# compiled with -std=gnu++11, which exposes the definition.
#
# https://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
CONFIGURE_ENV = ac_cv_type_max_align_t=yes
.include <bsd.port.mk>