Quote include and library paths when building Matlab extension
This commit is contained in:
parent
33c866447d
commit
93eb3cf033
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ class MatlabBuilder(object):
|
|||
def __call__(self, target, source, env):
|
||||
filenames = [os.path.split(node.path)[1] for node in source]
|
||||
sourcestr = ' '.join(pjoin('..','src',name) for name in filenames)
|
||||
includes = ' '.join('-I%s' % Dir(s).abspath for s in env['CPPPATH'])
|
||||
libdir = ' '.join('-L%s' % Dir(s).abspath for s in env['LIBPATH'])
|
||||
includes = ' '.join('-I%s' % quoted(Dir(s).abspath) for s in env['CPPPATH'])
|
||||
libdir = ' '.join('-L%s' % quoted(Dir(s).abspath) for s in env['LIBPATH'])
|
||||
libs = ' '.join('-l'+s for s in self.libs)
|
||||
extraFlag = '-cxx' if os.name == 'posix' else ''
|
||||
debugFlag = '-g' if not env['optimize'] else ''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue