Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / gcc47 / patches / patch-libgcc_config.host
blob8641720da98ac8709001f6ba19238ca90a208505
1 $NetBSD$
3 --- libgcc/config.host.orig     2012-02-20 21:19:55.000000000 +0000
4 +++ libgcc/config.host
5 @@ -174,6 +174,11 @@ case ${host} in
6    tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
7    extra_parts="crt3.o crttms.o crttme.o"
8    ;;
9 +*-*-dragonfly*)
10 +  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
11 +  tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
12 +  extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
13 +  ;;
14  *-*-freebsd*)
15    # This is the generic ELF configuration of FreeBSD.  Later
16    # machine-specific sections may refine and add to this
17 @@ -267,6 +272,7 @@ esac
19  case ${host} in
20  *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \
21 +  *-*-dragonfly* | \
22    alpha*-dec-osf5.1*)
23    enable_execute_stack=enable-execute-stack-mprotect.c
24    ;;
25 @@ -523,6 +529,14 @@ i[34567]86-*-elf*)
26  x86_64-*-elf*)
27         tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
28         ;;
29 +i[34567]86-*-dragonfly*)
30 +       tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
31 +       md_unwind_header=i386/dragonfly-unwind.h
32 +       ;;
33 +x86_64-*-dragonfly*)
34 +       tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
35 +       md_unwind_header=i386/dragonfly-unwind.h
36 +       ;;
37  i[34567]86-*-freebsd*)
38         tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
39         ;;
40 @@ -1156,6 +1170,7 @@ i[34567]86-*-darwin* | x86_64-*-darwin*
41    i[34567]86-*-gnu* | \
42    i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
43    i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
44 +  i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \
45    i[34567]86-*-freebsd* | x86_64-*-freebsd*)
46         tmake_file="${tmake_file} t-softfp-tf"
47         if test "${host_address}" = 32; then