From 34352b072b692c8499749b627993c21d5dab8eb1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 5 Sep 2008 22:45:28 +0000 Subject: [PATCH] 4.3.2-3 --- gcc43-altivec-tests.patch | 2 +- gcc43-libtool-no-rpath.patch | 27 +++++++++++++++++++++++++++ gcc43.spec | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 gcc43-libtool-no-rpath.patch diff --git a/gcc43-altivec-tests.patch b/gcc43-altivec-tests.patch index 010b8d8..0b7a456 100644 --- a/gcc43-altivec-tests.patch +++ b/gcc43-altivec-tests.patch @@ -37,6 +37,6 @@ @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* && powerpc_altivec_ok } } }} */ +/* { dg-do run { target { powerpc*-*-* && vmx_hw } } }} */ - /* { dg-options "-O2 -funroll-loops -ffast-math -fvariable-expansion-in-unroller -maltivec -fdump-rtl-loop2" } */ + /* { dg-options "-O2 -funroll-loops -ffast-math -fvariable-expansion-in-unroller -maltivec -dL" } */ #include "altivec.h" diff --git a/gcc43-libtool-no-rpath.patch b/gcc43-libtool-no-rpath.patch new file mode 100644 index 0000000..466c661 --- /dev/null +++ b/gcc43-libtool-no-rpath.patch @@ -0,0 +1,27 @@ +libtool sucks. +--- ltmain.sh.jj 2007-12-07 14:53:21.000000000 +0100 ++++ ltmain.sh 2008-09-05 21:51:48.000000000 +0200 +@@ -5394,6 +5394,7 @@ EOF + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do ++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then +@@ -6071,6 +6072,7 @@ EOF + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do ++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then +@@ -6120,6 +6122,7 @@ EOF + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do ++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then diff --git a/gcc43.spec b/gcc43.spec index 68afc2c..d63f377 100644 --- a/gcc43.spec +++ b/gcc43.spec @@ -3,7 +3,7 @@ %define gcc_version 4.3.2 # Note, gcc_release must be integer, if you want to add suffixes to # %{release}, append them after %{gcc_release} on Release: line. -%define gcc_release 2 +%define gcc_release 3 %define _unpackaged_files_terminate_build 0 %define multilib_64_archs sparc64 ppc64 s390x x86_64 %define include_gappletviewer 1