On Mon, Nov 23, 2020 at 11:17:13PM +0000, Stuart Henderson wrote: > On 2020/11/23 17:04, Kurt Mosiejczuk wrote: > > I was a bit bewildered for a while as to why picom would error out with > > "couldn't find uthash.h" when uthash was a build dependency. I finally > > looked at the log and the test program was specifying "-std=c++11" which > > base-gcc errored out on.
> > So specify ports-gcc in COMPILER fixes the build. > it's C11 not C++11 - probably wants COMPILER_LANGS=c too to avoid the > extra dep? Good point. Got confused by its similarity (and another port that _does_ use C++11 not getting along with base-gcc). Here's a version with the COMPILER_LANGS line. --Kurt Index: Makefile =================================================================== RCS file: /cvs/ports/x11/picom/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- Makefile 6 Nov 2020 19:40:34 -0000 1.3 +++ Makefile 24 Nov 2020 14:29:14 -0000 @@ -18,6 +18,10 @@ MODULES = devel/meson +# C11 +COMPILER = base-clang ports-gcc +COMPILER_LANGS = c + BUILD_DEPENDS = devel/uthash \ textproc/asciidoc