mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-21 08:17:00 +00:00
make abipkgdiff compile with GCC 4.4.7
GCC 4.4.7 won't let us declare an instance of string with __thread. So for now, package::extracted_packages_parent_dir() juststores its string globally. We are single-threaded for now anyway. * tools/abipkgdiff.cc (package::extracted_packages_parent_dir): The string holding the dir name is no more __thread, as this won't compile with GCC 4.4.7 Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
1f8fed586d
commit
d1c6ef0cb5
@ -330,7 +330,12 @@ public:
|
||||
const string&
|
||||
package::extracted_packages_parent_dir()
|
||||
{
|
||||
static __thread string p;
|
||||
// I tried to declare this in thread-local storage, but GCC 4.4.7
|
||||
//won't let me. So for now, I am just making it static. I'll deal
|
||||
//with this later when time of multi-threading comes.
|
||||
|
||||
//static __thread string p;
|
||||
static string p;
|
||||
|
||||
if (p.empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user