diff -r b452559eee71 Tools/freeze/freeze.py --- a/Tools/freeze/freeze.py Thu Apr 28 12:04:58 2011 +0100 +++ b/Tools/freeze/freeze.py Thu Apr 28 09:04:35 2011 -0700 @@ -93,6 +93,7 @@ import getopt import os import sys +import sysconfig # Import the freeze-private modules @@ -232,9 +233,12 @@ if win: frozendllmain_c = os.path.join(exec_prefix, 'Pc\\frozen_dllmain.c') else: + abiflags = sysconfig.get_config_vars().get('ABIFLAGS', '') binlib = os.path.join(exec_prefix, - 'lib', 'python%s' % version, 'config') - incldir = os.path.join(prefix, 'include', 'python%s' % version) + 'lib', 'python%s' % version, + 'config-%s%s' % (version, abiflags)) + incldir = os.path.join(prefix, 'include', + 'python%s%s' % (version, abiflags)) config_h_dir = os.path.join(exec_prefix, 'include', 'python%s' % version) config_c_in = os.path.join(binlib, 'config.c.in') @@ -455,7 +459,7 @@ cflags = ['$(OPT)'] cppflags = defines + includes - libs = [os.path.join(binlib, 'libpython$(VERSION).a')] + libs = [os.path.join(binlib, 'libpython$(VERSION)$(ABIFLAGS).a')] somevars = {} if os.path.exists(makefile_in):