Gcc cares about the order of the flags.

It fails with "undefined reference" on Ubuntu 14.04 LTS; just on ordering issue on the makefile item.