Browse Source

wscript: Fixes for python 3.

tags/v1.3.1000
Jonathan Moore Liles 13 years ago
parent
commit
c8dcfd74f4
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      wscript

+ 4
- 4
wscript View File

@@ -50,7 +50,7 @@ def run_ldconfig(ctx):
if (ctx.cmd == 'install'
and not ctx.env['RAN_LDCONFIG']
and ctx.env['LIBDIR']
and not os.environ.has_key('DESTDIR')):
and not os.environ.get('DESTDIR')):
try:
Logs.info("Waf: Running `/sbin/ldconfig %s'" % ctx.env['LIBDIR'])
subprocess.call(['/sbin/ldconfig', ctx.env['LIBDIR']])
@@ -148,14 +148,14 @@ def configure(conf):
'-g',
'-O0' ]

print '---'
print('---')

if Options.options.debug:
print 'Building for debugging'
print('Building for debugging')
conf.env.append_value('CFLAGS', debug_flags )
conf.env.append_value('CXXFLAGS', debug_flags )
else:
print 'Building for performance'
print('Building for performance')
conf.env.append_value('CFLAGS', optimization_flags )
conf.env.append_value('CXXFLAGS', optimization_flags )
conf.define( 'NDEBUG', 1 )


Loading…
Cancel
Save