Jack Black was roasted by the Friars Club at the New York Hilton yesterday — but some of the most searing jokes were aimed at Al Roker and his unfortunate confession about having an accident in his pants at the White House.

Roker, who was on the dais, found himself in the firing line after admitting to “Dateline” recently that, “I pooped my pants” during a 2002 visit to the White House. The “Today” weatherman endured an onslaught of jokes at his expense.

“Full House” star Bob Saget got things under way with, “Jack Black is actually more black than Al Roker. Truth is, Al is not really black, but his underpants are.” He added during the ceremony, “If you have to go to the bathroom, remember to just go right in Al Roker’s pants.”

Sarah Silverman kept the torment going, saying of Black’s band, “Instead of ‘Tenacious D’ they were going to call themselves ‘Black Gas,’ but it was already taken by Al Roker’s pants.” Adding, “The Roker jokes have already jumped the shark.”

“School of Rock” star Black endured jokes about his weight, with Silverman cracking, “Jack went on Jenny Craig — she suffocated to death.” Roastmaster General Jeff Ross continued, “We’re gonna find out if there’s thick skin under all that blubber . . . Jack, you rock. Actually, you boulder. It’s an honor to be here roasting Adele.”

“Law & Order” star Richard Belzer gave the X-rated ribbing a rest and offered a sweet tribute to Jerry Lewis, who served as the roast’s abbot. “The humor is wonderful because all these people have a point of view,” Lewis said. “I’m in the business a long time, but I have never, in front of an audience, said anything that sounded dirty. Never . . . Here’s my bid to tell a great funny dirty joke: [Bleep] you.”

Musicians Dee Snider, Gene Simmons, and the Beach Boys’ Mike Love and Bruce Johnston also attended.