Christopher Allan Webber writes: > 宋文武 writes: > >>> make[1]: *** [all-recursive] Error 1 >>> make[1]: Leaving directory '/tmp/nix-build-extremetuxracer-0.6.0.drv-0/etr-0.6.0' >>> Makefile:457: recipe for target 'all' failed >>> make: *** [all] Error 2 >>> >>> sdl is an input, so I don't know what's going on... >>> >>> Sorry! I thought this one was going to be an easy package that I >>> wouldn't need much help on! >> oops, I take a deep look. It turn out that >> this package set the flags (for SDL, etc.) as 'CFLAGS', >> but it only use 'CXXFLAGS' (only have freetype) when compile cpp files. >> I think we can patch the Makefile after 'configure' phase, by: >> >> (substitute* "Makefile" >> (("CXXFLAGS =") "CXXFLAGS = ${CFLAGS)")) >> >> And better, ask upstream for a real fix :-) > > Spot on! (Well mostly! ${CFLAGS} not ${CFLAGS), I was confused for a > minute :)) But this was exactly what was needed! We now have a working > (extreme) tuxracer! > > We're a REAL distro now! > - cwebb Okay, Dave Thompson pointed out I should use modify-phases. Done!