# HG changeset patch # User Michael Schloh von Bennewitz # Date 1231767651 -3600 # Node ID 84180bd0cb45fe9a50630b37abcd8c31ce5401b6 # Parent 49e9fb8edd058f982db12ad30c9a0803e0284e2c Introduce correction to binutils bug 9676. Try to correct libgdiplus, stlport, and qt build failures like: ld: lib*.so: pthread_mutexattr_settype: invalid version 6 (max 0) lib*.so: could not read symbols: Bad value diff -r 49e9fb8edd05 -r 84180bd0cb45 binutils/binutils.patch --- a/binutils/binutils.patch Mon Jan 12 14:38:36 2009 +0100 +++ b/binutils/binutils.patch Mon Jan 12 14:40:51 2009 +0100 @@ -175,3 +175,24 @@ if (ehbuf) free (ehbuf); if (sec_info) +Index: bfd/elflink.c +diff -Nau bfd/elflink.c.orig bfd/elflink.c +--- bfd/elflink.c.orig 2007-08-24 16:01:08.000000000 +0200 ++++ bfd/elflink.c 2009-01-11 14:07:54.705525343 +0100 +@@ -4231,7 +4231,15 @@ + h->ref_regular_nonweak = 1; + } + else +- h->def_regular = 1; ++ { ++ h->def_regular = 1; ++ if (h->def_dynamic) ++ { ++ h->def_dynamic = 0; ++ h->ref_dynamic = 1; ++ h->dynamic_def = 1; ++ } ++ } + if (! info->executable + || h->def_dynamic + || h->ref_dynamic) diff -r 49e9fb8edd05 -r 84180bd0cb45 binutils/binutils.spec --- a/binutils/binutils.spec Mon Jan 12 14:38:36 2009 +0100 +++ b/binutils/binutils.spec Mon Jan 12 14:40:51 2009 +0100 @@ -32,7 +32,7 @@ Group: Compiler License: GPL Version: 2.18 -Release: 20080101 +Release: 20090106 # list of sources Source0: ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2