Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-pthread -mthreads -mt #9

Closed
skydrome opened this issue Jan 20, 2012 · 3 comments
Closed

-pthread -mthreads -mt #9

skydrome opened this issue Jan 20, 2012 · 3 comments

Comments

@skydrome
Copy link
Contributor

is there a reason why the configure script is adding all three -pthread -mthreads -mt to the cflags?

checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... yes
checking for the pthreads library -lpthread... yes
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... yes
checking for the pthreads library -lpthreadGC2... no

yet i get this:

clang: warning: argument unused during compilation: '-mthreads'
clang: warning: argument unused during compilation: '-mt'

@rakshasa
Copy link
Owner

If you got a patch that detects this case, I'll include it. However I'd rather not touch those scripts unless necessary, as pthread detection is a rather fickle business.

@rakshasa
Copy link
Owner

Updated to use the official GNU pthread detection script, so this should be fixed.

@skydrome
Copy link
Contributor Author

confirmed, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants