Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.8.0
-
None
Description
$ mips-linux-g++ -dumpversion
4.1.2
$ ./configure -no-webkit -no-svg -nomake tests -nomake demos -nomake examples -nomake tools -opensource -confirm-license -embedded mips
When linking QtCore:
.obj/release-shared-emb-mips/qthread_unix.o: In function `set_thread_data(QThreadData*)':
qthread_unix.cpp.text+0xec): undefined reference to `__tls_get_addr'
.obj/release-shared-emb-mips/qthread_unix.o: In function `QThreadData::current()':
qthread_unix.cpp.text+0x708): undefined reference to `__tls_get_addr'
collect2: ld returned 1 exit status
The problem is 'fixed' by a patch like:
diff --git a/src/corelib/thread/qthread_unix.cpp b/src/corelib/thread/qthread_unix.cpp index 765969e..ae75700 100644 --- a/src/corelib/thread/qthread_unix.cpp +++ b/src/corelib/thread/qthread_unix.cpp @@ -107,7 +107,7 @@ QT_BEGIN_NAMESPACE enum { ThreadPriorityResetFlag = 0x80000000 }; #if defined(Q_OS_LINUX) && defined(__GLIBC__) && (defined(Q_CC_GNU) || defined(Q_CC_INTEL)) -#define HAVE_TLS +// #define HAVE_TLS #endif #if defined(Q_CC_XLC) || defined (Q_CC_SUN) #define HAVE_TLS
Attachments
Issue Links
- relates to
-
QTBUG-26817 QtCore link error: undefined reference to `__tls_get_addr'
- Closed