From patchwork Fri Aug 9 05:16:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lukichev X-Patchwork-Id: 265882 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 9D0322C00C5 for ; Fri, 9 Aug 2013 15:16:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6A04D8BDE8; Fri, 9 Aug 2013 05:16:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u2Hks46lMQaL; Fri, 9 Aug 2013 05:16:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 24CC28BE2F; Fri, 9 Aug 2013 05:16:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DC0661BF947 for ; Fri, 9 Aug 2013 05:16:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 15FE88C8EE for ; Fri, 9 Aug 2013 05:16:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X2+cUtIIHor7 for ; Fri, 9 Aug 2013 05:16:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by whitealder.osuosl.org (Postfix) with ESMTPS id D50EC8D2A7 for ; Fri, 9 Aug 2013 05:16:30 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id mf11so2741007lab.1 for ; Thu, 08 Aug 2013 22:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=dfS05YEWEF9R+fqajRQdNjfVS0hzCQTk8S9QsE9PYIY=; b=v9Ol5xf2G4DxHFdMFEF2WbxAvBnjIiLoJcem0lEGIQcsEWovLylTdv/ZAUunVNieeD FjMbM0j5fj6RNxaMMR/wl3rw1EnRa3J5EmZ3fvJquQ4CGY7XCKDNo9N7VXoCArmDSI3q nNY9ymSwLRRpux1M6lrO57mXDTtcovsGwx/WQyA9XO5thXDaLiN8oBPZtBj+vlWXLSfe kRpgRdzx/Bd4HOHHuS9BiHUWx52G4+fqE8YdpvXfQBrl6scimRGIA6K/nlPkonkOXkwB EXPgQigdzcgxJdLcUuGMoy7zDbMBmdB8IPgbtVaP+kaJEc1pvYCT+9Lda8GDrOPj3t+0 YD4Q== X-Received: by 10.152.29.201 with SMTP id m9mr5282530lah.6.1376025388699; Thu, 08 Aug 2013 22:16:28 -0700 (PDT) Received: from localhost.localdomain (37-219-168-30.nat.bb.dnainternet.fi. [37.219.168.30]) by mx.google.com with ESMTPSA id b6sm1954497lae.0.2013.08.08.22.16.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 22:16:28 -0700 (PDT) From: Alexander Lukichev To: buildroot@busybox.net Date: Fri, 9 Aug 2013 08:16:10 +0300 Message-Id: <1376025370-9467-1-git-send-email-alexander.lukichev@gmail.com> X-Mailer: git-send-email 1.8.0.1 Subject: [Buildroot] [PATCH 1/1] gcc: fix libstdc++_pic for AVR32 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net It is not clear why 300-libstdc++-pic.patch pre-applied to gcc-4.2.2-avr32-2.1.5 seems to have come from some older version of gcc (as early as 4.0.3). This older patch incorrectly refers to object files to be included in the library libstdc++_pic.a as *.o, while their location seems to be in .libs/*.o (see the contents at e.g. https://github.com/ZigFisher/Midge/blob/master/toolchain/gcc/4.0.3/300-libstdc%2B%2B-pic.patch ). The same patch for gcc 4.1.0 refers to the files as .libs/*.o (see https://github.com/ZigFisher/Midge/blob/master/toolchain/gcc/4.1.0/300-libstdc%2B%2B-pic.patch ). This patch corrects rules in Makefile.in. Signed-off-by: Alexander Lukichev Acked-by: Simon Dawson Tested-by: Simon Dawson --- .../990-fix-300-libstdc++-pic.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/gcc/4.2.2-avr32-2.1.5/990-fix-300-libstdc++-pic.patch diff --git a/package/gcc/4.2.2-avr32-2.1.5/990-fix-300-libstdc++-pic.patch b/package/gcc/4.2.2-avr32-2.1.5/990-fix-300-libstdc++-pic.patch new file mode 100644 index 0000000..a63b3ad --- /dev/null +++ b/package/gcc/4.2.2-avr32-2.1.5/990-fix-300-libstdc++-pic.patch @@ -0,0 +1,20 @@ +libstdc++-v3: fix the effects of pre-applied 300-libstdc++-pic.patch + +This version of GCC comes with a number of pre-applied patches, among which is +300-libstdc++-pic.patch that makes a PIC version of libstdc++. The resulting +Makefile.in incorrectly refers to object files that should be insde the library. + +Signed-off-by: Alexander Lukichev + +diff -uNrp host-gcc-final-4.2.2-avr32-2.1.5.orig/libstdc++-v3/src/Makefile.in host-gcc-final-4.2.2-avr32-2.1.5/libstdc++-v3/src/Makefile.in +--- host-gcc-final-4.2.2-avr32-2.1.5.orig/libstdc++-v3/src/Makefile.in 2008-07-04 00:18:42.000000000 +0300 ++++ host-gcc-final-4.2.2-avr32-2.1.5/libstdc++-v3/src/Makefile.in 2013-08-08 16:15:56.201258882 +0300 +@@ -804,7 +804,7 @@ install_debug: + + install-exec-local: + ifeq ($(enable_shared),yes) +- $(AR) cru libstdc++_pic.a *.o $(top_builddir)/libsupc++/*.o ++ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) + endif +