components/python/python35/patches/12-py_db.patch
changeset 7648 20e09cf3cfaa
parent 6447 56a2f066191a
equal deleted inserted replaced
7647:3a107326b5f8 7648:20e09cf3cfaa
     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-3.5.2/Makefile.pre.in.~3~	2016-07-08 06:59:11.325607242 -0700
     4 --- Python-3.5.3/Makefile.pre.in.~3~	2017-01-17 11:17:33.079376903 +0000
     5 +++ Python-3.5.2/Makefile.pre.in	2016-07-08 06:59:11.467802979 -0700
     5 +++ Python-3.5.3/Makefile.pre.in	2017-01-17 11:17:33.175322774 +0000
     6 @@ -489,7 +489,7 @@
     6 @@ -490,7 +490,7 @@
     7  
     7  
     8  # Default target
     8  # Default target
     9  all:		build_all
     9  all:		@DEF_MAKE_ALL_RULE@
    10 -build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_testembed python-config
    10 -build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_testembed python-config
    11 +build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_testembed python-config build-py_db
    11 +build_all:	$(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_testembed python-config 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 @@ -707,6 +707,15 @@
    15 @@ -708,6 +708,15 @@
    16  	@mv config.c Modules
    16  	@mv config.c Modules
    17  	@echo "The Makefile was updated, you may need to re-run make."
    17  	@echo "The Makefile was updated, you may need to re-run make."
    18  
    18  
    19 +SHLIB_FLAGS = -shared -fpic
    19 +SHLIB_FLAGS = -shared -fpic
    20 +
    20 +
    26 +install-py_db: libpython$(LDVERSION)_db.so.1.0
    26 +install-py_db: libpython$(LDVERSION)_db.so.1.0
    27 +	$(INSTALL_SHARED) libpython$(LDVERSION)_db.so.1.0 $(DESTDIR)$(LIBDIR)
    27 +	$(INSTALL_SHARED) libpython$(LDVERSION)_db.so.1.0 $(DESTDIR)$(LIBDIR)
    28  
    28  
    29  Modules/Setup: $(srcdir)/Modules/Setup.dist
    29  Modules/Setup: $(srcdir)/Modules/Setup.dist
    30  	@if test -f Modules/Setup; then \
    30  	@if test -f Modules/Setup; then \
    31 @@ -1099,7 +1108,7 @@
    31 @@ -1085,7 +1094,7 @@
    32  		$(TESTRUNNER) $(QUICKTESTOPTS)
    32  		$(TESTRUNNER) $(QUICKTESTOPTS)
    33  
    33  
    34  
    34  
    35 -install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@
    35 -install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@
    36 +install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall install-py_db @FRAMEWORKINSTALLLAST@
    36 +install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall install-py_db @FRAMEWORKINSTALLLAST@