move -lR to the end
move R link flags to the end