From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22789 invoked by alias); 12 Jun 2007 21:56:14 -0000 Received: (qmail 22774 invoked by uid 22791); 12 Jun 2007 21:56:12 -0000 X-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,DNS_FROM_RFC_ABUSE X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Jun 2007 21:56:09 +0000 Received: from mailhub3.br.ibm.com (mailhub3 [9.18.232.110]) by igw1.br.ibm.com (Postfix) with ESMTP id 614D3148109 for ; Tue, 12 Jun 2007 18:42:56 -0300 (BRT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l5CLu6CA1790062 for ; Tue, 12 Jun 2007 18:56:06 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l5CLrYLa011220 for ; Tue, 12 Jun 2007 18:53:34 -0300 Received: from [9.18.238.48] (dyn531781.br.ibm.com [9.18.238.48] (may be forged)) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l5CLrYnU011212 for ; Tue, 12 Jun 2007 18:53:34 -0300 Message-ID: <466F1666.5030105@linux.vnet.ibm.com> Date: Tue, 12 Jun 2007 22:16:00 -0000 From: Carlos Eduardo Seo Organization: IBM Linux Technology Center Brazil User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Frysk Mailing List Subject: Patch - fix ppc64 build X-Enigmail-Version: 0.95.0 OpenPGP: id=8BFFA900 Content-Type: multipart/mixed; boundary="------------030500090502010601030205" X-Virus-Checked: Checked by ClamAV on sourceware.org X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00257.txt.bz2 This is a multi-part message in MIME format. --------------030500090502010601030205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 748 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi folks! The attached patch fixes a wrong dependency while building for ppc64. It removes the need of libunwind-i386/src/.libs/libunwind-x86.a for a ppc build. Can be used together with Jose Flavio's patch for libunwind: http://sources.redhat.com/ml/frysk/2007-q2/msg00174.html I hope it helps people who are trying to build Frysk on ppc64. Regards, - -- Carlos Eduardo Seo Linux on Power Software Engineer IBM Linux Technology Center Brazil -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGbxZlqvq7Aov/qQARAh+iAJ4pkAANOlSRnRT6Ehr8iLvEziumywCfQHVG uJbh0QT/zWplx3/izpyL9C0= =1vcR -----END PGP SIGNATURE----- --------------030500090502010601030205 Content-Type: text/plain; name="ppc-build.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ppc-build.patch" Content-length: 4563 Index: frysk/frysk-core/Makefile.am =================================================================== --- frysk.orig/frysk-core/Makefile.am +++ frysk/frysk-core/Makefile.am @@ -75,11 +75,16 @@ GEN_GCJ_LDADD += ../frysk-imports/elfuti GEN_GCJ_LDADD += ../frysk-imports/elfutils/libdw/libdw.a GEN_GCJ_LDADD += ../frysk-imports/elfutils/libebl/libebl.a GEN_GCJ_LDADD += ../frysk-imports/elfutils/libelf/libelf.a + if USE_LIBUNWIND -GEN_GCJ_LDADD += ../frysk-imports/libunwind/src/.libs/libunwind-ptrace.a \ - ../frysk-imports/libunwind/src/.libs/libunwind-$(libunwind_cpu).a \ - ../frysk-imports/libunwind-i386/src/.libs/libunwind-x86.a + GEN_GCJ_LDADD += ../frysk-imports/libunwind/src/.libs/libunwind-ptrace.a \ + ../frysk-imports/libunwind/src/.libs/libunwind-$(libunwind_cpu).a +endif + +if ARCH_x86 + GEN_GCJ_LDADD += ../frysk-imports/libunwind-i386/src/.libs/libunwind-x86.a endif + GEN_GCJ_LDADD += -lstdc++ # Stub bfd_getb32 and bfd_getl32 for PPC64. Unconditionally # link -lbfd_get just for simplification. Index: frysk/frysk-core/common/m4/frysk-use-libunwind.m4 =================================================================== --- frysk.orig/frysk-core/common/m4/frysk-use-libunwind.m4 +++ frysk/frysk-core/common/m4/frysk-use-libunwind.m4 @@ -51,4 +51,5 @@ i?86) AC_SUBST([libunwind_cpu], [x86]);; powerpc64) AC_SUBST([libunwind_cpu], [ppc64]);; *) AC_SUBST([libunwind_cpu], [$target_cpu]);; esac +AM_CONDITIONAL([ARCH_x86], [test $target_cpu = i?86]) ]) Index: frysk/frysk-gtk/Makefile.am =================================================================== --- frysk.orig/frysk-gtk/Makefile.am +++ frysk/frysk-gtk/Makefile.am @@ -59,11 +59,16 @@ GEN_GCJ_LDADD += ../frysk-imports/elfuti GEN_GCJ_LDADD += ../frysk-imports/elfutils/libdw/libdw.a GEN_GCJ_LDADD += ../frysk-imports/elfutils/libebl/libebl.a GEN_GCJ_LDADD += ../frysk-imports/elfutils/libelf/libelf.a + if USE_LIBUNWIND -GEN_GCJ_LDADD += ../frysk-imports/libunwind/src/.libs/libunwind-ptrace.a \ - ../frysk-imports/libunwind/src/.libs/libunwind-$(libunwind_cpu).a \ - ../frysk-imports/libunwind-i386/src/.libs/libunwind-x86.a + GEN_GCJ_LDADD += ../frysk-imports/libunwind/src/.libs/libunwind-ptrace.a \ + ../frysk-imports/libunwind/src/.libs/libunwind-$(libunwind_cpu).a +endif + +if ARCH_x86 + GEN_GCJ_LDADD += ../frysk-imports/libunwind-i386/src/.libs/libunwind-x86.a endif + GEN_GCJ_LDADD += -lstdc++ # Stub bfd_getb32 and bfd_getl32 for PPC64. Unconditionally # link -lbfd_get just for simplification. Index: frysk/frysk-gtk/common/m4/frysk-use-libunwind.m4 =================================================================== --- frysk.orig/frysk-gtk/common/m4/frysk-use-libunwind.m4 +++ frysk/frysk-gtk/common/m4/frysk-use-libunwind.m4 @@ -51,4 +51,5 @@ i?86) AC_SUBST([libunwind_cpu], [x86]);; powerpc64) AC_SUBST([libunwind_cpu], [ppc64]);; *) AC_SUBST([libunwind_cpu], [$target_cpu]);; esac +AM_CONDITIONAL([ARCH_x86], [test $target_cpu = i?86]) ]) Index: frysk/frysk-gui/Makefile.am =================================================================== --- frysk.orig/frysk-gui/Makefile.am +++ frysk/frysk-gui/Makefile.am @@ -74,11 +74,16 @@ GEN_GCJ_LDADD += ../frysk-imports/elfuti GEN_GCJ_LDADD += ../frysk-imports/elfutils/libdw/libdw.a GEN_GCJ_LDADD += ../frysk-imports/elfutils/libebl/libebl.a GEN_GCJ_LDADD += ../frysk-imports/elfutils/libelf/libelf.a + if USE_LIBUNWIND -GEN_GCJ_LDADD += ../frysk-imports/libunwind/src/.libs/libunwind-ptrace.a \ - ../frysk-imports/libunwind/src/.libs/libunwind-$(libunwind_cpu).a \ - ../frysk-imports/libunwind-i386/src/.libs/libunwind-x86.a + GEN_GCJ_LDADD += ../frysk-imports/libunwind/src/.libs/libunwind-ptrace.a \ + ../frysk-imports/libunwind/src/.libs/libunwind-$(libunwind_cpu).a +endif + +if ARCH_x86 + GEN_GCJ_LDADD += ../frysk-imports/libunwind-i386/src/.libs/libunwind-x86.a endif + GEN_GCJ_LDADD += -lstdc++ GEN_GCJ_LDADD += ../frysk-gtk/libfrysk-ftk.a GEN_GCJ_LDADD += -L../frysk-gtk/EggTrayIcon Index: frysk/frysk-gui/common/m4/frysk-use-libunwind.m4 =================================================================== --- frysk.orig/frysk-gui/common/m4/frysk-use-libunwind.m4 +++ frysk/frysk-gui/common/m4/frysk-use-libunwind.m4 @@ -51,4 +51,5 @@ i?86) AC_SUBST([libunwind_cpu], [x86]);; powerpc64) AC_SUBST([libunwind_cpu], [ppc64]);; *) AC_SUBST([libunwind_cpu], [$target_cpu]);; esac +AM_CONDITIONAL([ARCH_x86], [test $target_cpu = i?86]) ]) --------------030500090502010601030205 Content-Type: application/octet-stream; name="ppc-build.patch.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ppc-build.patch.sig" Content-length: 90 iD8DBQBGbxZlqvq7Aov/qQARAmqDAJ9aEy33ttoPICh/pZ0tFEZQ0Ov5VgCb BZCKFTj2Yo1OCPn1re5h742tD4k= --------------030500090502010601030205--