From patchwork Wed Feb 8 22:01:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 140275 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 02023B6ED0 for ; Thu, 9 Feb 2012 09:02:00 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1329343322; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=RIn/nGw aPWvZH/T4j+8Lxh+Je7s=; b=XW89air+8sZNgo0FePyE8j57PXgtik8vlwjSK8m JD70IqPvqMJileu5b+G76eTCu5R97ZTJfyVvYBI33+ofUlRr2pJRB92R8zmsxEKY YVw2HvwJbE+i+bk5lajHMXICVH/zCztKBz50rS3aA1Iz6LhHIH/c5juFOdozTl0i WWTw= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=dYywlncD7SZON1PoJXppN4iupV9xiFHakrr069gVuT0AKt82hz01xzSOUBwO1a G2Srvf6oni5FfGmcujOzIWzN1F4u0ARoBbbc45+PSnG6JX5UKSTVFj/8cKtRQt3m TEJY+fwTBXs8J2/RIdDntdBbtc9J0VSJerT/S7lwFaeVc=; Received: (qmail 31087 invoked by alias); 8 Feb 2012 22:01:54 -0000 Received: (qmail 31079 invoked by uid 22791); 8 Feb 2012 22:01:54 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-tul01m020-f175.google.com (HELO mail-tul01m020-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Feb 2012 22:01:40 +0000 Received: by obhx4 with SMTP id x4so1495335obh.20 for ; Wed, 08 Feb 2012 14:01:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.31.47 with SMTP id x15mr27220606obh.76.1328738499500; Wed, 08 Feb 2012 14:01:39 -0800 (PST) Received: by 10.182.141.74 with HTTP; Wed, 8 Feb 2012 14:01:39 -0800 (PST) Date: Wed, 8 Feb 2012 23:01:39 +0100 Message-ID: Subject: [patch libffi]: Enable build for DLL version for x64 windows targets From: Kai Tietz To: GCC Patches Cc: Anthony Green X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, the following patch enables DLL build for x64 windows target. ChangeLog 2012-02-08 Kai Tietz * configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64 windows target. * configure: Regenerated Tested for x86_64-w64-mingw32. Ok for apply? Regards, Kai Index: configure.ac =================================================================== --- configure.ac (revision 184020) +++ configure.ac (working copy) @@ -166,6 +166,15 @@ x86_64-*-cygwin* | x86_64-*-mingw*) TARGET=X86_WIN64; TARGETDIR=x86 + # All mingw/cygwin/win32 builds require -no-undefined for sharedlib. + # We must also check with_cross_host to decide if this is a native + # or cross-build and select where to install dlls appropriately. + if test -n "$with_cross_host" && + test x"$with_cross_host" != x"no"; then + AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"'; + else + AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"'; + fi ;; x86_64-*-*)