Matthew McConaughey has revealed that he struggled to complete Dallas Buyers Club, his upcoming film about AIDS activist Ron Woodroof, due to lack of interest from financiers and studios.

Speaking to Deadline, the actor said, "It was something that I had on my desk that I was trying to do for a while, but it wasn't popular enough for anyone to come up with the money. So we were like, 'Let's find the right team.'

"Usually the message that gets to me is, it's not for them. Period piece, AIDS drama. That one line hurt. I'm sure there were many desks where that one-liner was all they read. But there was a lot of talent that had been attracted to this thing for a while."

McConaughey lost 47 pounds to play the lead role in the film which is set in 1985 Dallas and tells the story of electrician and hustler Ron Woodroof who works around the system to help AIDS patients get the medication they need after he is himself diagnosed with the disease.

Jared Leto and Jennifer Garner also have lead roles. "You know, the stars aligned, and we willed it through," McConaughty says. "We just had to get this to a price, get financing any way we could get it, which was under $5 million."

Dallas Buyers Club is due for release on February 7 2014.