output_dir=None,
macros=None,
include_dirs=None,
+ debug=0,
extra_preargs=None,
extra_postargs=None):
# (will have to fix this when I add the ability to build a
# new Python)
cc_args = ['-c'] + pp_opts + self.ccflags + self.ccflags_shared
+ if debug:
+ cc_args[:0] = ['-g']
if extra_preargs:
cc_args[:0] = extra_preargs
if extra_postargs is None:
def link_static_lib (self,
objects,
output_libname,
- output_dir=None):
+ output_dir=None,
+ debug=0):
if type (objects) not in (ListType, TupleType):
raise TypeError, \
output_dir=None,
libraries=None,
library_dirs=None,
+ debug=0,
extra_preargs=None,
extra_postargs=None):
# XXX should we sanity check the library name? (eg. no
output_dir,
libraries,
library_dirs,
+ debug,
extra_preargs,
extra_postargs)
output_dir=None,
libraries=None,
library_dirs=None,
+ debug=0,
extra_preargs=None,
extra_postargs=None):
if self.force or newer:
ld_args = self.ldflags_shared + objects + \
lib_opts + ['-o', output_filename]
+ if debug:
+ ld_args[:0] = ['-g']
if extra_preargs:
ld_args[:0] = extra_preargs
if extra_postargs:
output_dir=None,
libraries=None,
library_dirs=None,
+ debug=0,
extra_preargs=None,
extra_postargs=None):
if self.force or newer:
ld_args = objects + lib_opts + ['-o', output_filename]
+ if debug:
+ ld_args[:0] = ['-g']
if extra_preargs:
ld_args[:0] = extra_preargs
if extra_postargs: