[Lsb-messages] /var/www/bzr/lsb/devel/build_env r1917: force 603 instruction set for ppc32 (bug 3253)

Mats Wichmann mats at linuxfoundation.org
Fri Mar 9 20:03:06 UTC 2012


------------------------------------------------------------
revno: 1917
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: build_env
timestamp: Fri 2012-03-09 13:03:06 -0700
message:
  force 603 instruction set for ppc32 (bug 3253)
modified:
  lsbdev-cc/lsbcc.c
  package/Makefile
-------------- next part --------------
=== modified file 'lsbdev-cc/lsbcc.c'
--- a/lsbdev-cc/lsbcc.c	2012-03-09 19:51:34 +0000
+++ b/lsbdev-cc/lsbcc.c	2012-03-09 20:03:06 +0000
@@ -1585,14 +1585,21 @@
 	}
 }
 
+#if __powerpc__ && !__powerpc64__
 /* fugly hack for issue with compiled apps on some plats not
  * running on others (SLES10 compiled segfaults on Debian4 ppc)
  * provide our own crti.o to work around the issue
-*/
-#if __powerpc__ && !__powerpc64__
+ */
 argvaddstring(gccargs, "-B/opt/lsb/lib");
 #endif
 
+#if __powerpc__ && !__powerpc64__
+/* new defaults in gcc no longer produce the ppc32 cpu instructions
+ * specified by the LSB ABI.  Force this.  Bug 3253.
+ */
+argvaddstring(gccargs, "-mcpu=603");
+#endif
+
 /* Check if we need to specify the length of long double. */
  if (!cc_is_icc && need_long_double_64()) {
    if (lsbcc_debug & DEBUG_MODIFIED_ARGS) {

=== modified file 'package/Makefile'
--- a/package/Makefile	2012-03-09 19:51:34 +0000
+++ b/package/Makefile	2012-03-09 20:03:06 +0000
@@ -13,7 +13,7 @@
 
 # We define this here instead of directly in the spec file as
 # we need to be able to work out what the produced rpm files will be called
-RPM_PACKAGE_RELEASE=3
+RPM_PACKAGE_RELEASE=4
 
 # Derive date string for daily snapshots
 ISO_DATE:=$(shell date +"%Y%m%d")



More information about the lsb-messages mailing list