Pop star Cyndi Lauper has recruited 50 Cent to perform at her annual charity concert which supports LGBT homeless youth even though the rapper has a history of making anti-gay remarks.

The star-studded concert will be held on 6 December at New York City’s Beacon Theatre and co-hosted by Lauper and Rosie O’Donnell.

In 2010, 50 Cent suggested that men who do not sleep with women should “just kill” themselves.

It is not clear whether he was referring to gay men or straight men who don’t like oral sex.

He wrote: “If you [are] a man and your [sic] over 25 and you don’t eat pu**y just kill yourself damn it. The world will be a better place.”

The star, real name Curtis Jackson, posted the message shortly after the death of 19-year-old Tyler Clementi.

The New Jersey student killed himself after his roommate put a secret tape of him having sex with a man on the internet.

In 2005, 50 Cent said: “Being gay isn’t cool – it’s not what the music is based on. There’s always been conflict at the centre of hip-hop, because it’s all about which guy has the competitive edge, and you can’t be that aggressive if you’re gay.”

In a 2010 spat with gay celebrity blogger Perez Hilton, 50 Cent tweeted: “Perez Hilton calld [sic] me douchebag so I had my homie shoot up a gay wedding. wasnt his but still made me feel better.”

He attached a picture of two men in suits running from an angry crowd.

More recently, the rapper has attempted to make amends for his anti-gay remarks.

In a 2012 interview with Perez Hilton, 50 Cent spoke about growing up with a lesbian mother and how he came to understand her sexuality.

The rapper said: “My mom was a lesbian. Yeah, she liked women. My whole childhood was like that.”

He added that it wasn’t always clear to him that his mom was gay, but his grandmother helped him understand the nature of her sexuality.

He said: “It’s two different things too – from a female perspective, when you see two females together, you think, oh, they’re just girlfriends, they’re close. But, with my mom, the male was missing.

“When you’re that small you don’t see things that would indicate there are other things going on. [My] grandmother would say things like ‘That kiss was a little different from all the other kisses you saw’.”

The rapper also cited President Obama’s endorsement of marriage equality as an influence on his own opinion, saying: “Obama is for same-sex marriage. If the president is saying that, then who am I to go the other way?”