Don't write the static output to a tmp buf, just write it to disk
Correct order for linking