note to self

when using GCC to do all-in-one linking, the order of library flags matters.