SConstruct (9585:ef864175dcc0) SConstruct (9588:d4924e68028f)
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

--- 825 unchanged lines hidden (view full) ---

834if py_platform_include != py_general_include:
835 py_includes.append(py_platform_include)
836
837py_lib_path = [ py_getvar('LIBDIR') ]
838# add the prefix/lib/pythonX.Y/config dir, but only if there is no
839# shared library in prefix/lib/.
840if not py_getvar('Py_ENABLE_SHARED'):
841 py_lib_path.append(py_getvar('LIBPL'))
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

--- 825 unchanged lines hidden (view full) ---

834if py_platform_include != py_general_include:
835 py_includes.append(py_platform_include)
836
837py_lib_path = [ py_getvar('LIBDIR') ]
838# add the prefix/lib/pythonX.Y/config dir, but only if there is no
839# shared library in prefix/lib/.
840if not py_getvar('Py_ENABLE_SHARED'):
841 py_lib_path.append(py_getvar('LIBPL'))
842 # Python requires the flags in LINKFORSHARED to be added the
843 # linker flags when linking with a statically with Python. Failing
844 # to do so can lead to errors from the Python's dynamic module
845 # loader at start up.
846 main.Append(LINKFLAGS=[py_getvar('LINKFORSHARED').split()])
842
843py_libs = []
844for lib in py_getvar('LIBS').split() + py_getvar('SYSLIBS').split():
845 if not lib.startswith('-l'):
846 # Python requires some special flags to link (e.g. -framework
847 # common on OS X systems), assume appending preserves order
848 main.Append(LINKFLAGS=[lib])
849 else:

--- 374 unchanged lines hidden ---
847
848py_libs = []
849for lib in py_getvar('LIBS').split() + py_getvar('SYSLIBS').split():
850 if not lib.startswith('-l'):
851 # Python requires some special flags to link (e.g. -framework
852 # common on OS X systems), assume appending preserves order
853 main.Append(LINKFLAGS=[lib])
854 else:

--- 374 unchanged lines hidden ---