From 6c348211147ae411e00e7bfc452c105dd15c6a51 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Fri, 19 Dec 2008 09:46:30 +0000 Subject: Do not generate ordinal, and use the basename of the dll instead of the full path in the def.file. --- numpy/distutils/mingw32ccompiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'numpy/distutils/mingw32ccompiler.py') diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index b95e9e020..4280ea0e5 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -247,12 +247,13 @@ def generate_def(dll, dfile): log.warn('No symbols found in %s' % dll) d = open(dfile, 'w') - d.write('LIBRARY %s\n' % dll) + d.write('LIBRARY %s\n' % os.path.basename(dll)) d.write(';CODE PRELOAD MOVEABLE DISCARDABLE\n') d.write(';DATA PRELOAD SINGLE\n') d.write('\nEXPORTS\n') for s in syms: - d.write('@%d %s\n' % (s[0], s[1])) + #d.write('@%d %s\n' % (s[0], s[1])) + d.write('%s\n' % s[1]) d.close() def build_import_library(): -- cgit v1.2.1