Rebase
[platform/upstream/libffi.git] / patches / msvcc-warning
1 Index: libffi/README
2 ===================================================================
3 --- libffi.orig/README
4 +++ libffi/README
5 @@ -114,9 +114,13 @@ It's also possible to build libffi on Wi
6  Microsoft's Visual C++ compiler.  In this case, use the msvcc.sh
7  wrapper script during configuration like so:
8  
9 -path/to/configure --enable-shared --enable-static \
10 -       CC=path/to/msvcc.sh LD=link \
11 -       CPP=\"cl -nologo -EP\"
12 +path/to/configure CC=path/to/msvcc.sh LD=link CPP=\"cl -nologo -EP\"
13 +
14 +For 64-bit Windows builds, use CC="path/to/msvcc.sh -m64".
15 +You may also need to specify --build appropriately. When building with MSVC
16 +under a MingW environment, you may need to remove the line in configure
17 +that sets 'fix_srcfile_path' to a 'cygpath' command. ('cygpath' is not
18 +present in MingW, and is not required when using MingW-style paths.)
19  
20  Configure has many other options. Use "configure --help" to see them all.
21  
22 Index: libffi/msvcc.sh
23 ===================================================================
24 --- libffi.orig/msvcc.sh
25 +++ libffi/msvcc.sh
26 @@ -42,7 +42,7 @@
27  # format and translated into something sensible for cl or ml.
28  #
29  
30 -args="-nologo"
31 +args="-nologo -W3"
32  md=-MD
33  cl="cl"
34  ml="ml"
35 Index: libffi/ChangeLog
36 ===================================================================
37 --- libffi.orig/ChangeLog
38 +++ libffi/ChangeLog
39 @@ -131,6 +131,11 @@
40         * man/Makefile.in: Regenerate.
41         * testsuite/Makefile.in: Regenerate.
42  
43 +2010-03-30  Dan Witte  <dwitte@mozilla.com>
44 +
45 +       * msvcc.sh: Disable build warnings.
46 +       * README (tested): Clarify windows build procedure.
47 +
48  2010-03-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
49  
50         * configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.