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