Followup to libstdc++ needing lpthread on i586-linux
H.J. Lu
hjl@lucon.org
Thu Oct 2 14:26:00 GMT 1997
>
> stimpy:~$ cat test.cc
> #include <iostream.h>
> int main()
> {
> cout << "Hello World.\n";
> }
>
Here is a patch.
H.J.
---
--- linuxthreads/sysdeps/pthread/libc-lock.h.orig Thu Oct 2 13:20:38 1997
+++ linuxthreads/sysdeps/pthread/libc-lock.h Thu Oct 2 13:22:24 1997
@@ -166,6 +166,11 @@
/* We need portable names for some functions. E.g., when they are
used as argument to __libc_cleanup_region_start. */
# define __libc_mutex_unlock __pthread_mutex_unlock
+#else
+# ifdef __ELF__
+# pragma weak _pthread_cleanup_push_defer
+# pragma weak _pthread_cleanup_pop_restore
+# endif
#endif
#endif /* bits/libc-lock.h */
More information about the Gcc
mailing list