3
# DP: Fix profiled build; don't use Python/thread.gc*, gcc complains.
4
# DP: Ignore errors in the profile task.
7
if [ $# -eq 3 -a "$2" = '-d' ]; then
10
elif [ $# -ne 1 ]; then
11
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
16
patch $pdir -f --no-backup-if-mismatch -p0 < $0
19
patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
22
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
27
--- Makefile.pre.in.orig 2008-11-18 22:37:15.000000000 +0000
28
+++ Makefile.pre.in 2008-11-23 14:49:12.000000000 +0000
30
$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov"
33
- ./$(BUILDPYTHON) $(PROFILE_TASK)
34
+ -./$(BUILDPYTHON) $(PROFILE_TASK)
36
build_all_use_profile:
37
+ : # FIXME: gcc error
38
+ rm -f Python/thread.gc* Modules/_ssl.gc*
39
$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use"