gmake: add ldflags from config; add docs on ld