]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/blob - patches/patch-ai
I tried building GHC 6.10.1 with GHC 6.4.2 but failed...
[pkgsrc-ghc.git] / patches / patch-ai
1 $NetBSD: patch-ai,v 1.6 2007/03/24 17:57:20 kristerw Exp $
2
3 --- ../ghc-6.4.2/distrib/prep-bin-dist-mingw.orig       2006-03-19 04:26:18.000000000 +0100
4 +++ ../ghc-6.4.2/distrib/prep-bin-dist-mingw    2006-10-14 04:43:55.000000000 +0200
5 @@ -27,25 +27,25 @@
6  #    - gcc_version -- what gcc version your mingw tree uses.
7  #
8  #
9 -if [ "x${old_ghc_top}" == "x" ]; then
10 +if [ "x${old_ghc_top}" = "x" ]; then
11      export old_ghc_top=c:/ghc/ghc-6.2.1
12  fi
13 -if [ "x${mingw_top}" == "x" ]; then
14 +if [ "x${mingw_top}" = "x" ]; then
15   export mingw_top=c:/mingw3
16  fi
17  
18  # The gcc-lib directory of the mingw tree you want to
19  # include with the binary dist.
20 -if [ "x${gcc_lib}" == "x" ]; then
21 - if [ "x${gcc_version}" == "x" ]; then
22 +if [ "x${gcc_lib}" = "x" ]; then
23 + if [ "x${gcc_version}" = "x" ]; then
24     # The default (with mingw3)
25     export gcc_lib=$mingw_top/lib/gcc-lib/mingw32/3.2.3
26   else
27     export gcc_lib=$mingw_top/lib/gcc-lib/mingw32/${gcc_version}
28   fi
29  fi
30 -if [ "x${gcc_libexec}" == "x" ]; then
31 - if [ "x${gcc_version}" == "x" ]; then
32 +if [ "x${gcc_libexec}" = "x" ]; then
33 + if [ "x${gcc_version}" = "x" ]; then
34     # The default (with mingw3)
35     export gcc_libexec=$mingw_top/lib/gcc-lib/mingw32/3.2.3
36   else
37 @@ -61,7 +61,7 @@ if [ "x${gcc_libexec}" == "x" ]; then
38  fi
39  
40  #Directory where a (cygwin-free) perl binary resides.
41 -if [ "x${perl_dir}" == "x" ]; then
42 +if [ "x${perl_dir}" = "x" ]; then
43    export perl_dir=$old_ghc_top
44  fi
45  
46 @@ -69,13 +69,13 @@ fi
47  # The mingw include, lib, and bin directories; all derived
48  # from ${mingw_top}.
49  #
50 -if [ "x${mingw_include}" == "x" ]; then
51 +if [ "x${mingw_include}" = "x" ]; then
52    export mingw_include=$mingw_top/include
53  fi
54 -if [ "x${mingw_lib}" == "x" ]; then
55 +if [ "x${mingw_lib}" = "x" ]; then
56    export mingw_lib=$mingw_top/lib
57  fi
58 -if [ "x${mingw_bin}" == "x" ]; then
59 +if [ "x${mingw_bin}" = "x" ]; then
60    export mingw_bin=$mingw_top/bin
61  fi
62