And with that the tests builds and runs and passes!
I think it would make sense to move out the gcc vs clang, and hardcoded CC, and system header include CFLAGS out of the Makefile and make them easier to override, and set the proper overrides in .github/workflow/
Running tests fails miserable on Alpine Linux:
The Makefile assumes you have a
../x86_64-linux-musl-native/bin/gcc
compiler available and fails if you don't.Also If I use the system gcc by setting
CC=gcc
:Part of the problem is that the Alpine Linux gcc enables fortify-headers by default. There are warnings like:
This can be worked around by setting
-U_FORTIFY_SOURCE
:I see that for
clang
there are-nostdinc
to avoid it mess up with system headers. We can do something similar forgcc
on Alpine:And with that the tests builds and runs and passes!
I think it would make sense to move out the gcc vs clang, and hardcoded CC, and system header include CFLAGS out of the Makefile and make them easier to override, and set the proper overrides in
.github/workflow/