[Bug 621880] New: glibc: Support -lpthread static linking by building pthread.a with "ld -r"
http://bugzilla.novell.com/show_bug.cgi?id=621880
http://bugzilla.novell.com/show_bug.cgi?id=621880#c0
Summary: glibc: Support -lpthread static linking by building
pthread.a with "ld -r"
Classification: openSUSE
Product: openSUSE 11.3
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: burnus@gmx.de
QAContact: qa@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.6)
Gecko/20100625 Firefox/3.6.6
Currently, on can get all kind of segfaults, if one simply links a program
statically with the POSIX thread library, e.g. via
$(COMPILER) -static $(SOURCEFILES) -fopenmp
one way is to link via
$(COMPILER) -static $(SOURCEFILES) -lgomp -Wl,--whole-archive -lpthread
-Wl,--no-whole-archive -lrt
However, one can do the same as Red Hat does:
* Wed Feb 18 2009 Jakub Jelinek
http://bugzilla.novell.com/show_bug.cgi?id=621880
http://bugzilla.novell.com/show_bug.cgi?id=621880#c
yang xiaoyu
https://bugzilla.novell.com/show_bug.cgi?id=621880
https://bugzilla.novell.com/show_bug.cgi?id=621880#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=621880
https://bugzilla.novell.com/show_bug.cgi?id=621880#c2
--- Comment #2 from Tobias Burnus
https://bugzilla.novell.com/show_bug.cgi?id=621880
https://bugzilla.novell.com/show_bug.cgi?id=621880#c3
Michael Matz
participants (1)
-
bugzilla_noreply@novell.com