On Sun, Nov 04, 2018 at 09:20:55PM -0000, Christian Weisgerber wrote:
> On 2018-11-04, Philip Guenther <[email protected]> wrote:
> 
> >> I'm not sure how to fix this.  Maybe add -std=c11 (or -std=gnu11?) right 
> >> away to CFLAGS?
> >
> > That seems like the simplest solution, forcing both sides to 
> > (approximately) the same symbol visibility.
> 
> --- Makefile.orig     Sun Nov  4 22:14:21 2018
> +++ Makefile  Sun Nov  4 22:13:47 2018
> @@ -74,3 +75,8 @@
>               ${WRKSRC}/tests/*.c
>  
>  .include <bsd.port.mk>
> +
> +# match visibility of max_align_t between CC and CXX
> +.if ${CHOSEN_COMPILER} == "ports-gcc"
> +CFLAGS += -std=gnu11
> +.endif

thanks, trying this diff on sparc64|macppc.

Reply via email to