Olivier Giroud scored the winning goal from the penalty spot as France beat Moldova 2-1 on Thursday to move ahead of Turkey in their European Championship qualifying group.

Giroud confidently smacked the spot kick into the left corner in the 79th minute after left back Lucas Digne was tripped running onto a return pass from Kylian Mbappé. It moved Giroud onto 39 international goals and just two behind Michel Platini in France’s all-time scorers’ list, which Thierry Henry tops with 51.

France had already qualified for Euro 2020 earlier Thursday because Iceland drew 0-0 at Turkey, guaranteeing France and Turkey the top two positons in Group H. France is two points ahead of Turkey and completes its qualifying away to Albania on Sunday.

France's Olivier Giroud reacts after he missed a chance to score during the Euro 2020 group H qualifying soccer match between France and Moldova at the Stade de France stadium, in Saint Denis, north of Paris, Thursday, Nov. 14, 2019. (AP PhotoFrancois Mori)

France's Olivier Giroud reacts after he missed a chance to score during the Euro 2020 group H qualifying soccer match between France and Moldova at the Stade de France stadium, in Saint Denis, north of Paris, Thursday, Nov. 14, 2019. (AP PhotoFrancois Mori)

Moldova spoiled the mood of the Stade de France crowd by scoring after nine minutes, following poor defending from France defender Clément Lenglet in the area. Lenglet’s hesitancy gave the speedy forward enough room to hook the ball past goalkeeper Steve Mandanda.

Moldova defended deep with numbers and occasionally broke quickly up field, a simple but effective tactic which frustrated France. Giroud flashed a header just wide in the 30th minute and Mbappé had a low shot easily saved shortly after.

France’s 35th-minute equalizer perhaps should not have stood.

France's Olivier Giroud, left, fights for the ball with Moldova's goalkeeper Alexei Koselev, during the Euro 2020 group H qualifying soccer match between France and Moldova at the Stade de France stadium, in Saint Denis, north of Paris, Thursday, Nov. 14, 2019. (AP PhotoFrancois Mori)

France's Olivier Giroud, left, fights for the ball with Moldova's goalkeeper Alexei Koselev, during the Euro 2020 group H qualifying soccer match between France and Moldova at the Stade de France stadium, in Saint Denis, north of Paris, Thursday, Nov. 14, 2019. (AP PhotoFrancois Mori)

From Antoine Griezmann’s free kick, Giroud appeared to try to flick the ball with his hand and also backed into goalkeeper Alexei Koşelev, who fell down and was then unable to keep out center half Raphaël Varane’s close-range header.

Mbappé and Giroud squandered chances early in the second half.

Giroud, who has hardly played at all for Chelsea this season under coach Frank Lampard, lacked some sharpness and failed to latch onto a through ball from Mbappé with 20 minutes left.

Moldova's players celebrate after Vadim Rata scored a goal during the Euro 2020 group H qualifying soccer match between France and Moldova at the Stade de France stadium, in Saint Denis, north of Paris, Thursday, Nov. 14, 2019. (AP PhotoFrancois Mori)

Moldova's players celebrate after Vadim Rata scored a goal during the Euro 2020 group H qualifying soccer match between France and Moldova at the Stade de France stadium, in Saint Denis, north of Paris, Thursday, Nov. 14, 2019. (AP PhotoFrancois Mori)

But with the crowd chanting his name over and over, he slammed home the penalty and then proudly puffed out his chest.

More AP soccer https://apnews.com/Soccer and https://twitter.com/AP_Sports