Commit b2b34005 authored by Jack Jansen's avatar Jack Jansen

The libraries argument was completely ignored, fixed. Reported by

Tom Loredo.
parent f1285960
...@@ -16,7 +16,7 @@ import distutils.dir_util ...@@ -16,7 +16,7 @@ import distutils.dir_util
import mkcwproject import mkcwproject
class MWerksCompiler (CCompiler) : class MWerksCompiler (CCompiler) :
"""Concrete class that implements an interface to Microsoft Visual C++, """Concrete class that implements an interface to MetroWerks CodeWarrior,
as defined by the CCompiler abstract class.""" as defined by the CCompiler abstract class."""
compiler_type = 'mwerks' compiler_type = 'mwerks'
...@@ -150,6 +150,7 @@ class MWerksCompiler (CCompiler) : ...@@ -150,6 +150,7 @@ class MWerksCompiler (CCompiler) :
if not dirname in sourcefiledirs: if not dirname in sourcefiledirs:
sourcefiledirs.append(dirname) sourcefiledirs.append(dirname)
settings['sources'] = sourcefilenames settings['sources'] = sourcefilenames
settings['libraries'] = libraries
settings['extrasearchdirs'] = sourcefiledirs + include_dirs + library_dirs settings['extrasearchdirs'] = sourcefiledirs + include_dirs + library_dirs
if self.dry_run: if self.dry_run:
print 'CALLING LINKER IN', os.getcwd() print 'CALLING LINKER IN', os.getcwd()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment