Open akien-mga opened 4 years ago
Does make -f Makefile.simple
work for you? (I'd guess "no", but if it did, that'd confirm my bias against autotools.)
I do think it would be reasonable to use pkg-config --cflags sdl
and pkg-config --ldflags sdl
in Makefile.simple, instead of hardcoding the flags as I originally did. I think I just wasn't confident that the pkg-config
utility would exist everywhere.
Fixed in #333
Compiling the latest
master
branch (as well as11.3o
on Mageia Cauldron), I get the following error:Note that it says
SDL/SDL_gfxPrimitives.h header was not found
, yet the configure does not fail (that's the first bug).Then calling
make
eventually leads to the same issue in hyperrogue's code:Exporting
CXXFLAGS = -I/usr/include/SDL
fixes it, but this should be done by the autotools buildsystem.Notably, the recommended approach would be to rely on
sdl-config --cflags
orpkg-config sdl --cflags
to retrieve the relevant information:More specifically,
pkg-config
should likely be queried for all dependencies with both--cflags
and--libs
to get the necessary compile and linking flags. E.g.: