summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-23 14:38:46 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-23 14:38:46 (GMT)
commitdf1940717d4308335454732a3c9e54ab91af056d (patch)
tree59e6ce4d98b53dc3f118db419137ce4bb45b722b /Tools/freeze
parentf8830d1de59db517984e292ee28607dcb9c04cd7 (diff)
downloadcpython-df1940717d4308335454732a3c9e54ab91af056d.zip
cpython-df1940717d4308335454732a3c9e54ab91af056d.tar.gz
cpython-df1940717d4308335454732a3c9e54ab91af056d.tar.bz2
When using extention modules, relative path names that occur in the
Setup file are fixed so that they will work from the freeze build directory. However, relative path names in liner -L and -R options are not fixed in this way. (Sjoerd Mullender)
Diffstat (limited to 'Tools/freeze')
-rw-r--r--Tools/freeze/checkextensions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/freeze/checkextensions.py b/Tools/freeze/checkextensions.py
index a7890d8..68f7ff8 100644
--- a/Tools/freeze/checkextensions.py
+++ b/Tools/freeze/checkextensions.py
@@ -48,6 +48,8 @@ def select(e, mods, vars, mod, skipofiles):
continue
if w[0] != '-' and w[-2:] in ('.o', '.a'):
w = os.path.join(e, w)
+ if w[:2] in ('-L', '-R'):
+ w = w[:2] + os.path.join(e, w[2:])
files.append(w)
return files