SConstruct (8614:2fc7787f47a9) | SConstruct (8655:e4001326a5ba) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 649 unchanged lines hidden (view full) --- 658py_lib_path = [ py_getvar('LIBDIR') ] 659# add the prefix/lib/pythonX.Y/config dir, but only if there is no 660# shared library in prefix/lib/. 661if not py_getvar('Py_ENABLE_SHARED'): 662 py_lib_path.append(py_getvar('LIBPL')) 663 664py_libs = [] 665for lib in py_getvar('LIBS').split() + py_getvar('SYSLIBS').split(): | 1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 649 unchanged lines hidden (view full) --- 658py_lib_path = [ py_getvar('LIBDIR') ] 659# add the prefix/lib/pythonX.Y/config dir, but only if there is no 660# shared library in prefix/lib/. 661if not py_getvar('Py_ENABLE_SHARED'): 662 py_lib_path.append(py_getvar('LIBPL')) 663 664py_libs = [] 665for lib in py_getvar('LIBS').split() + py_getvar('SYSLIBS').split(): |
666 assert lib.startswith('-l') 667 lib = lib[2:] 668 if lib not in py_libs: 669 py_libs.append(lib) | 666 if not lib.startswith('-l'): 667 # Python requires some special flags to link (e.g. -framework 668 # common on OS X systems), assume appending preserves order 669 main.Append(LINKFLAGS=[lib]) 670 else: 671 lib = lib[2:] 672 if lib not in py_libs: 673 py_libs.append(lib) |
670py_libs.append(py_version) 671 672main.Append(CPPPATH=py_includes) 673main.Append(LIBPATH=py_lib_path) 674 675# Cache build files in the supplied directory. 676if main['M5_BUILD_CACHE']: 677 print 'Using build cache located at', main['M5_BUILD_CACHE'] --- 329 unchanged lines hidden --- | 674py_libs.append(py_version) 675 676main.Append(CPPPATH=py_includes) 677main.Append(LIBPATH=py_lib_path) 678 679# Cache build files in the supplied directory. 680if main['M5_BUILD_CACHE']: 681 print 'Using build cache located at', main['M5_BUILD_CACHE'] --- 329 unchanged lines hidden --- |