Open pixelsyntax opened 4 years ago
Right, I suppose we have to allow injecting custom CFLAGS
somehow. I did that with LIB_PARAMS
in what feels like a really hacky way: The makefile runs prebuild.exe
which writes out lib.sexp
, which is then used in the dune file as (link_flags (:include ../lib.sexp))
.
We could do the same for CFLAGS
, but I wonder if there's an easier approach.
Is this still being considered? I managed to build HEAD with the changes described by @pixelsyntax, would be nice to get this a bit more streamlined so I could get this to build in a github action.
I believe building from source on FreeBSD is broken. Attempting to build HEAD on FreeBSD using the instructions given at https://haxe.org/documentation/introduction/building-haxe.html
This appears to be addressed by @andyli's comment here https://github.com/HaxeFoundation/haxe/issues/6146#issuecomment-295161446, however
After learning way more about dune than I'd care to know, I have been able to work around the problem by modifying /haxe/dune from
to
Which now allows gmake to run the build as expected. I'm not sure what a cleaner way to fix this issue would be.