Agriculture is the mainstay of the economy , providing a livelihood for three-fourths of the population and accounting for about one-third of GDP .