Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: textproc/libfyaml needs ports-gcc for stdatomic.h
To:
ports@openbsd.org
Date:
Thu, 6 Nov 2025 11:41:12 +0100

Download raw body.

Thread
On Thu, Nov 06, 2025 at 11:35:50AM +0100, Claudio Jeker wrote:
> To build textproc/libfyaml sparc64 needs to use ports-gcc since this code
> uses stdatomic.h.
> 
> -- 
> :wq Claudio
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/textproc/libfyaml/Makefile,v
> diff -u -p -r1.2 Makefile
> --- Makefile	3 Oct 2025 09:49:34 -0000	1.2
> +++ Makefile	6 Nov 2025 10:25:56 -0000
> @@ -12,6 +12,10 @@ CATEGORIES=		textproc devel
>  # MIT
>  PERMIT_PACKAGE=		Yes
>  
> +# needs stdatomic.h
> +COMPILER_LANGS=		c
> +COMPILER=		base-clang ports-gcc

Please flip the order to the lines. It helps grepability. People also
like to have this after WANTLIB for some reason

ok tb

> +
>  WANTLIB += c pthread
>  
>  BUILD_DEPENDS=		devel/libyaml
>