diff options
author | Greg Ward <gward@python.net> | 2000-09-01 01:28:33 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-09-01 01:28:33 (GMT) |
commit | cec1568625619aea4e755fb6bd40b4452c0765e6 (patch) | |
tree | bfa179ba5e52b768073d079d5cfa02a295f30096 /Lib/distutils/bcppcompiler.py | |
parent | 7483d6803b42ba7dd389e659de0a2f2ea3ee8533 (diff) | |
download | cpython-cec1568625619aea4e755fb6bd40b4452c0765e6.zip cpython-cec1568625619aea4e755fb6bd40b4452c0765e6.tar.gz cpython-cec1568625619aea4e755fb6bd40b4452c0765e6.tar.bz2 |
Rene Liebscher:
* reverse library names from bcpp_library to library_bcpp
* move some code to the right places, to put the def-files
in the right directories again
Diffstat (limited to 'Lib/distutils/bcppcompiler.py')
-rw-r--r-- | Lib/distutils/bcppcompiler.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/distutils/bcppcompiler.py b/Lib/distutils/bcppcompiler.py index 8ad9e4f..2b73b12 100644 --- a/Lib/distutils/bcppcompiler.py +++ b/Lib/distutils/bcppcompiler.py @@ -224,17 +224,6 @@ class BCPPCompiler(CCompiler) : else: ld_args = self.ldflags_shared[:] - # Borland C++ has problems with '/' in paths - objects = map(os.path.normpath, objects) - startup_obj = 'c0d32' - objects.insert(0, startup_obj) - - # either exchange python15.lib in the python libs directory against - # a Borland-like one, or create one with name bcpp_python15.lib - # there and remove the pragmas from config.h - libraries.append ('import32') - libraries.append ('cw32mt') - # Create a temporary exports file for use by the linker head, tail = os.path.split (output_filename) modname, ext = os.path.splitext (tail) @@ -246,6 +235,17 @@ class BCPPCompiler(CCompiler) : self.execute(write_file, (def_file, contents), "writing %s" % def_file) + # Borland C++ has problems with '/' in paths + objects = map(os.path.normpath, objects) + startup_obj = 'c0d32' + objects.insert(0, startup_obj) + + # either exchange python15.lib in the python libs directory against + # a Borland-like one, or create one with name bcpp_python15.lib + # there and remove the pragmas from config.h + libraries.append ('import32') + libraries.append ('cw32mt') + # Start building command line flags and options. for l in library_dirs: @@ -377,9 +377,9 @@ class BCPPCompiler(CCompiler) : # seems to have a different format for static libraries. if debug: dlib = (lib + "_d") - try_names = ("bcpp_" + dlib, "bcpp_" + lib, dlib, lib) + try_names = (dlib + "_bcpp", lib + "_bcpp", dlib, lib) else: - try_names = ("bcpp_" + lib, lib) + try_names = (lib + "_bcpp", lib) for dir in dirs: for name in try_names: |