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:
Dodji Seketeli 2015-08-21 13:08:38 +02:00
parent 1f8fed586d
commit d1c6ef0cb5

View File

@ -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())
{