components/python/python27/patches/14-py_db.patch
changeset 6445 0edecb568b2e
parent 5183 3a048793fc91
child 7516 09c933391a1b
equal deleted inserted replaced
6442:f900f128dbb9 6445:0edecb568b2e
     1 This patch adds Python debugger support.  It may be contributed upstream at
     1 This patch adds Python debugger support.  It may be contributed upstream at
     2 some point, but the suitability (or lack thereof) has not yet been determined.
     2 some point, but the suitability (or lack thereof) has not yet been determined.
     3 
     3 
     4 --- Python-2.7.11rc1/Makefile.pre.in.~3~	2015-12-03 14:15:04.499799986 -0800
     4 --- Python-2.7.12/Makefile.pre.in.~3~	2016-07-07 14:07:55.545052752 -0700
     5 +++ Python-2.7.11rc1/Makefile.pre.in	2015-12-03 14:15:04.524821613 -0800
     5 +++ Python-2.7.12/Makefile.pre.in	2016-07-07 14:07:55.569639679 -0700
     6 @@ -424,7 +424,7 @@
     6 @@ -432,7 +432,7 @@
     7  
     7  
     8  # Default target
     8  # Default target
     9  all:		build_all
     9  all:		build_all
    10 -build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
    10 -build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
    11 +build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks build-py_db
    11 +build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks build-py_db
    12  
    12  
    13  # Compile a binary with profile guided optimization.
    13  # Compile a binary with profile guided optimization.
    14  profile-opt:
    14  profile-opt:
    15 @@ -821,6 +821,15 @@
    15 @@ -877,6 +877,15 @@
    16  
    16  
    17  $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
    17  $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
    18  
    18  
    19 +SHLIB_FLAGS = -shared -fpic
    19 +SHLIB_FLAGS = -shared -fpic
    20 +
    20 +
    26 +install-py_db: libpython2.7_db.so.1.0
    26 +install-py_db: libpython2.7_db.so.1.0
    27 +	$(INSTALL_SHARED) libpython2.7_db.so.1.0 $(DESTDIR)$(LIBDIR)
    27 +	$(INSTALL_SHARED) libpython2.7_db.so.1.0 $(DESTDIR)$(LIBDIR)
    28  
    28  
    29  ######################################################################
    29  ######################################################################
    30  
    30  
    31 @@ -885,7 +894,7 @@
    31 @@ -941,7 +950,7 @@
    32  		$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
    32  		$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
    33  
    33  
    34  # Install everything
    34  # Install everything
    35 -install:	@FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@
    35 -install:	@FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@
    36 +install:	@FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@ install-py_db
    36 +install:	@FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@ install-py_db