BLD: make it easier to build with AddressSanitizer (#16447)
BLD: make it easier to build with AddressSanitizer (#16447)

[ci skip]
anntzer/scipy,endolith/scipy,rgommers/scipy,mdhaber/scipy,ilayn/scipy,mdhaber/scipy,Stefan-Endres/scipy,ilayn/scipy,Stefan-Endres/scipy,anntzer/scipy,mdhaber/scipy,Stefan-Endres/scipy,endolith/scipy,ilayn/scipy,mdhaber/scipy,rgommers/scipy,scipy/scipy,ilayn/scipy,ilayn/scipy,endolith/scipy,WarrenWeckesser/scipy,scipy/scipy,rgommers/scipy,anntzer/scipy,anntzer/scipy,WarrenWeckesser/scipy,anntzer/scipy,perimosocordiae/scipy,Stefan-Endres/scipy,endolith/scipy,endolith/scipy,WarrenWeckesser/scipy,ilayn/scipy,mdhaber/scipy,andyfaff/scipy,WarrenWeckesser/scipy,andyfaff/scipy,scipy/scipy,andyfaff/scipy,perimosocordiae/scipy,perimosocordiae/scipy,andyfaff/scipy,andyfaff/scipy,scipy/scipy,scipy/scipy,andyfaff/scipy,rgommers/scipy,anntzer/scipy,WarrenWeckesser/scipy,rgommers/scipy,Stefan-Endres/scipy,mdhaber/scipy,perimosocordiae/scipy,Stefan-Endres/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,scipy/scipy,perimosocordiae/scipy,endolith/scipy