Bug 24843

Summary: gcc does not recognize -kthread
Product: Base System Reporter: jml <jml>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-RELEASE   
Hardware: Any   
OS: Any   

Description jml 2001-02-04 10:00:05 UTC
cc, gcc or ld do not recognize the -kthread option. This leads to use
of wrong libgcc.a when linking software against linuxthreads (and of
course invalidates existing makefiles, making 4.2 a non-workable
development platform for someone using linuxthreads).

Fix: 

Recompile the tools with correct options, or use binaries from
4.1-RELEASE.
How-To-Repeat: snafu:~$ cc --version
2.95.2
snafu:~$ cc -kthread
cc: unrecognized option `-kthread'
cc: No input files specified
snafu:~$ gcc -kthread
gcc: unrecognized option `-kthread'
gcc: No input files specified
snafu:~$ ld -kthread
/usr/libexec/elf/ld: unrecognized option `-kthread'
/usr/libexec/elf/ld: use the --help option for usage information
Comment 1 Jason Evans freebsd_committer freebsd_triage 2001-05-28 20:45:59 UTC
State Changed
From-To: open->closed

The -kthread link flag was purposely removed, since linuxthreads is not 
part of the base system.  There are explicit instructions that come with 
the linuxthreads port that explain how to link with linuxthreads.