[c] build script move LDFLAGS to tail for linking static lib
[c] sample test with Basic of CUnit framework