@ -61,14 +61,19 @@ endif
# which are not compatible with mingw gcc. Therefore we need to build a
# which are not compatible with mingw gcc. Therefore we need to build a
# new import library to link with.
# new import library to link with.
i f e q ( $( PORTNAME ) , w i n 3 2 )
i f e q ( $( PORTNAME ) , w i n 3 2 )
pytverstr = $( subst .,,${ python_version } )
pytverstr = $( subst .,,${ python_version } )
PYTHONDLL = $( subst \, /,$( WINDIR) ) /system32/python${ pytverstr } .dll
OBJS += libpython${ pytverstr } .a
OBJS += libpython${ pytverstr } .a
libpython${pytverstr}.a : python ${pytverstr }.def
libpython${pytverstr}.a : python ${pytverstr }.def
dlltool --dllname python${ pytverstr } .dll --def python${ pytverstr } .def --output-lib libpython${ pytverstr } .a
dlltool --dllname python${ pytverstr } .dll --def python${ pytverstr } .def --output-lib libpython${ pytverstr } .a
WD = $( subst \, /,$( WINDIR) )
python${pytverstr}.def :
python${pytverstr}.def : $( PYTHONDLL )
pexports $( WD) /system32/python${ pytverstr } .dll > python${ pytverstr } .def
pexports $^ > $@
e n d i f
e n d i f # win32
SHLIB_LINK = $( python_libspec) $( python_additional_libs) $( filter -lintl,$( LIBS) )
SHLIB_LINK = $( python_libspec) $( python_additional_libs) $( filter -lintl,$( LIBS) )