From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11606 invoked by alias); 21 Mar 2010 07:46:03 -0000 Received: (qmail 11598 invoked by uid 22791); 21 Mar 2010 07:46:03 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-pw0-f47.google.com (HELO mail-pw0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 21 Mar 2010 07:45:59 +0000 Received: by pwi6 with SMTP id 6so3077959pwi.20 for ; Sun, 21 Mar 2010 00:45:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.209.15 with SMTP id h15mr2650897wfg.32.1269157557893; Sun, 21 Mar 2010 00:45:57 -0700 (PDT) Date: Sun, 21 Mar 2010 07:46:00 -0000 Message-ID: <8964790c1003210045s6faaf369v40215b933ea2d34d@mail.gmail.com> Subject: [PATCH] building libffi on mswin64 with msvcc.sh From: wanabe To: libffi-discuss@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org X-SW-Source: 2010/txt/msg00065.txt.bz2 Hello, libffi-discuss. I tried to build libffi on mswin64. To do it, I had to rewrite part of msvcc.sh to avoid some warnings. The patch is below. And in configure phase, it needed --build=x86_64-pc-mingw32 and CC="path/to/msvcc.sh -m64". If README notes it, it get more easily comprehensible, I guess. Your attention to this would be greatly appreciated. Sincerely. diff --git a/msvcc.sh b/msvcc.sh index 8301839..f6ae503 100755 --- a/msvcc.sh +++ b/msvcc.sh @@ -44,7 +44,7 @@ # Disable specific warnings, and enable warnings-as-errors so we catch any # mistranslated args. -nowarn="-wd4127 -wd4820 -wd4706 -wd4100 -wd4255 -wd4668 -wd4053 -wd4324" +nowarn="-wd4127 -wd4820 -wd4706 -wd4100 -wd4255 -wd4668 -wd4053 -wd4324 -wd4267 -wd4305 -wd4054" args="-nologo -W3 -WX $nowarn" md=-MD cl="cl" -- wanabe