components/python/python34/patches/05-studio-profile.patch
changeset 1953 5c1face45dc8
parent 1907 446472de62e9
child 2183 5d00686e81da
equal deleted inserted replaced
1952:edbaa9c65514 1953:5c1face45dc8
     2 Studio instead of gcc.  The unfortunate repetition of options seen below
     2 Studio instead of gcc.  The unfortunate repetition of options seen below
     3 is a workaround for build peculiarities and to meet Studio's requirement
     3 is a workaround for build peculiarities and to meet Studio's requirement
     4 that the profiling options be used at all steps of the build -- not just
     4 that the profiling options be used at all steps of the build -- not just
     5 compilation.  As it is Solaris-specific, it is not suitable for upstream.
     5 compilation.  As it is Solaris-specific, it is not suitable for upstream.
     6 
     6 
     7 --- Python-3.4.0/Makefile.pre.in.~2~	2014-03-19 10:42:20.230354945 -0700
     7 --- Python-3.4.1/Makefile.pre.in.~2~	2014-05-27 11:00:11.343553051 -0700
     8 +++ Python-3.4.0/Makefile.pre.in	2014-03-19 10:42:20.412767814 -0700
     8 +++ Python-3.4.1/Makefile.pre.in	2014-05-27 11:00:11.424599176 -0700
     9 @@ -472,30 +472,39 @@
     9 @@ -472,30 +472,39 @@
    10  profile-opt:
    10  profile-opt:
    11  	@echo "Building with support for profile generation:"
    11  	@echo "Building with support for profile generation:"
    12  	$(MAKE) clean
    12  	$(MAKE) clean
    13 +	$(MAKE) profile-removal
    13 +	$(MAKE) profile-removal
    64 -		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
    64 -		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
    65 +		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py build
    65 +		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py build
    66  
    66  
    67  # Build static library
    67  # Build static library
    68  # avoid long command lines, same as LIBRARY_OBJS
    68  # avoid long command lines, same as LIBRARY_OBJS
    69 @@ -1575,7 +1580,7 @@
    69 @@ -1576,7 +1581,7 @@
    70  	-rm -f Modules/_testembed Modules/_freeze_importlib
    70  	-rm -f Modules/_testembed Modules/_freeze_importlib
    71  
    71  
    72  profile-removal:
    72  profile-removal:
    73 -	find . -name '*.gc??' -exec rm -f {} ';'
    73 -	find . -name '*.gc??' -exec rm -f {} ';'
    74 +	find . -name '*profile' -exec rm -f {} ';'
    74 +	find . -name '*profile' -exec rm -f {} ';'