• Max Kellermann's avatar
    configure.ac: check for pthread before librt · 7a1e026b
    Max Kellermann authored
    Works around a linker problem with some older glibc versions: if
    "-lrt" was used, then "-pthread" was implied, but only the symbols
    used by librt were available.  This led to a linker error because
    pthread_atfork() was not found.
    
    So with "-lrt", autoconf decides that no pthread flag is necessary,
    but in the end fails due to pthread_atfork() missing.
    
    By checking for pthread before librt, we avoid this dependency
    problem.
    7a1e026b
Name
Last commit
Last update
android Loading commit data...
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...