Hi, Thomas Schwinge, le Sun 29 Jul 2007 17:24:34 +0200, a écrit : > > *startfile: %{!shared: %{!static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} > > %{!p:crt1.o%s}}} %{static: %{pg:gcrt0.o%s} %{!pg:{%p:gcrt0}} > > Here is a typo, I suppose: ^
Yes. Here is an fixed patch. Samuel
#! /bin/sh -e # DP: Fix profiling on hurd-i386. dir= if [ $# -eq 3 -a "$2" = '-d' ]; then pdir="-d $3" dir="$3/" elif [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0 ;; -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 ;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 esac exit 0 --- gcc/config/i386/gnu.h.orig 2007-07-18 21:51:25.000000000 +0200 +++ gcc/config/i386/gnu.h 2007-07-18 21:52:18.000000000 +0200 @@ -34,8 +34,8 @@ #define STARTFILE_SPEC \ "%{!shared: \ %{!static: \ - %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \ - %{static:crt0.o%s}} \ + %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt1.o%s}}} \ + %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s}} %{!p:crt0.o%s}}} \ crti.o%s %{static:crtbeginT.o%s}\ %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"