@@ -257,21 +257,21 @@ macro_rules! extern_libpython {
257257 ( $abi: literal { $( $body: tt) * } ) => {
258258 extern_libpython!( @impl $abi { $( $body) * }
259259 // abi3
260- "python3" , "python3_d" ,
260+ "python3" , "python3_d" , "libpython3" , "libpython3_d" ,
261261 // abi3t
262- "python3t" , "python3t_d" ,
262+ "python3t" , "python3t_d" , "libpython3t" , "libpython3t_d" ,
263263 // Python 3.9 - 3.15
264- "python39" , "python39_d" ,
265- "python310" , "python310_d" ,
266- "python311" , "python311_d" ,
267- "python312" , "python312_d" ,
268- "python313" , "python313_d" ,
269- "python314" , "python314_d" ,
270- "python315" , "python315_d" ,
264+ "python39" , "python39_d" , "libpython39" , "libpython39_d" ,
265+ "python310" , "python310_d" , "libpython310" , "libpython310_d" ,
266+ "python311" , "python311_d" , "libpython311" , "libpython311_d" ,
267+ "python312" , "python312_d" , "libpython312" , "libpython312_d" ,
268+ "python313" , "python313_d" , "libpython313" , "libpython313_d" ,
269+ "python314" , "python314_d" , "libpython314" , "libpython314_d" ,
270+ "python315" , "python315_d" , "libpython315" , "libpython315_d" ,
271271 // free-threaded builds (3.13+)
272- "python313t" , "python313t_d" ,
273- "python314t" , "python314t_d" ,
274- "python315t" , "python315t_d" ,
272+ "python313t" , "python313t_d" , "libpython313t" , "libpython313t_d" ,
273+ "python314t" , "python314t_d" , "libpython314t" , "libpython314t_d" ,
274+ "python315t" , "python315t_d" , "libpython315t" , "libpython315t_d" ,
275275 // PyPy (DLL is libpypy3.X-c.dll, not pythonXY.dll)
276276 "libpypy3.11-c" ,
277277 ) ;
@@ -287,9 +287,9 @@ macro_rules! extern_libpython {
287287 ( @impl $abi: literal { $( $body: tt) * } $( $dll: literal) ,* $( , ) ?) => {
288288 $(
289289 #[ cfg_attr( all( windows, target_arch = "x86" , pyo3_dll = $dll) ,
290- link( name = $dll, kind = "raw-dylib" , import_name_type = "undecorated" ) ) ]
290+ link( name = $dll, kind = "raw-dylib" , modifiers = "+verbatim" , import_name_type = "undecorated" ) ) ]
291291 #[ cfg_attr( all( windows, not( target_arch = "x86" ) , pyo3_dll = $dll) ,
292- link( name = $dll, kind = "raw-dylib" ) ) ]
292+ link( name = $dll, kind = "raw-dylib" , modifiers = "+verbatim" ) ) ]
293293 ) *
294294 extern $abi {
295295 extern_libpython_items! { $( $body) * }
0 commit comments