SConstruct (12688:8d2a4af53baa) SConstruct (12790:9cfb7f1c50b6)
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015-2017 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

741 main.Append(LINKFLAGS=[lib])
742 else:
743 lib = lib[2:]
744 if lib not in py_libs:
745 py_libs.append(lib)
746
747 # verify that this stuff works
748 if not conf.CheckHeader('Python.h', '<>'):
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015-2017 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

741 main.Append(LINKFLAGS=[lib])
742 else:
743 lib = lib[2:]
744 if lib not in py_libs:
745 py_libs.append(lib)
746
747 # verify that this stuff works
748 if not conf.CheckHeader('Python.h', '<>'):
749 print("Error: can't find Python.h header in", py_includes)
750 print("Install Python headers (package python-dev on " +
751 "Ubuntu and RedHat)")
749 print("Error: Check failed for Python.h header in", py_includes)
750 print("Two possible reasons:")
751 print("1. Python headers are not installed (You can install the "
752 "package python-dev on Ubuntu and RedHat)")
753 print("2. SCons is using a wrong C compiler. This can happen if "
754 "CC has the wrong value.")
755 print("CC = %s" % main['CC'])
752 Exit(1)
753
754 for lib in py_libs:
755 if not conf.CheckLib(lib):
756 print("Error: can't find library %s required by python" % lib)
757 Exit(1)
758
759# On Solaris you need to use libsocket for socket ops

--- 505 unchanged lines hidden ---
756 Exit(1)
757
758 for lib in py_libs:
759 if not conf.CheckLib(lib):
760 print("Error: can't find library %s required by python" % lib)
761 Exit(1)
762
763# On Solaris you need to use libsocket for socket ops

--- 505 unchanged lines hidden ---