reorder gcc linker options.