A pickup truck preparing to race another vehicle on a Suffolk County street fled when the driver saw a police patrol car and ended up crashing into the wall of a building, police said.

The Ford F-150 pickup hit the building at Edison Avenue and Kean Street in West Babylon about 11:30 p.m. Wednesday, Suffolk County police said.

advertisement | advertise on newsday

The unidentified male driver, who was not injured, was given a summons for speeding, reckless endangerment and drag racing, police said.

Police had no information on the other vehicle.