| Summary: | [s390x] ex_clone.c:42: undefined reference to `pthread_create' | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | dann frazier <dannf> |
| Component: | general | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | arnez, borntraeger, dannf |
| Priority: | NOR | ||
| Version First Reported In: | 3.11 SVN | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Move -lpthread to end of linker command line | ||
|
Description
dann frazier
2016-03-31 21:48:13 UTC
Created attachment 98183 [details]
Move -lpthread to end of linker command line
I can certaiinly apply this patch, but I am puzzled. why does gcc -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector -m64 -o ex_clone none/tests/s390x/ex_clone.o -lpthread work and gcc -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector -m64 -lpthread -o ex_clone none/tests/s390x/ex_clone.o does not? OK, seems that library ordering does indeed matter. applied as r15970 |