On AIX, with --enable-threads=posix or no --enable-threads option, I'm seeing a number of link errors:
xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-set-mode-acl test-set-mode-acl.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-set-mode-acl] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-copy-acl test-copy-acl.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-copy-acl] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-argmatch test-argmatch.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-argmatch] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-closein test-closein.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-closein] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-copy-file test-copy-file.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-copy-file] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o dfa-match-aux dfa-match-aux.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [dfa-match-aux] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-fnmatch test-fnmatch.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-fnmatch] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-glob test-glob.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-glob] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbmemcasecmp test-mbmemcasecmp.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbmemcasecmp] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbmemcasecoll test-mbmemcasecoll.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbmemcasecoll] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbrtowc test-mbrtowc.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbrtowc] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbscasecmp test-mbscasecmp.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbscasecmp] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbscasestr1 test-mbscasestr1.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbscasestr1] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbscasestr2 test-mbscasestr2.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbscasestr2] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbscasestr3 test-mbscasestr3.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbscasestr3] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbscasestr4 test-mbscasestr4.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbscasestr4] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbschr test-mbschr.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbschr] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbscspn test-mbscspn.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbscspn] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsinit test-mbsinit.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsinit] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsncasecmp test-mbsncasecmp.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsncasecmp] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsnrtowcs test-mbsnrtowcs.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsnrtowcs] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbspbrk test-mbspbrk.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbspbrk] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbspcasecmp test-mbspcasecmp.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbspcasecmp] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsrchr test-mbsrchr.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsrchr] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsrtowcs test-mbsrtowcs.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsrtowcs] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsspn test-mbsspn.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsspn] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsstr1 test-mbsstr1.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsstr1] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsstr2 test-mbsstr2.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsstr2] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-mbsstr3 test-mbsstr3.o libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-mbsstr3] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-quotearg-simple test-quotearg-simple.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-quotearg-simple] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-quotearg test-quotearg.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-quotearg] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-readtokens test-readtokens.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-readtokens] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-regex-quote test-regex-quote.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-regex-quote] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-sh-quote test-sh-quote.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-sh-quote] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-ulc-asnprintf1 unistdio/test-ulc-asnprintf1.o libtests.a ../gllib/libgnu.a libtests.a -liconv -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-ulc-asnprintf1] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-ulc-vasnprintf1 unistdio/test-ulc-vasnprintf1.o libtests.a ../gllib/libgnu.a libtests.a -liconv -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-ulc-vasnprintf1] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-ulc-vasnprintf2 unistdio/test-ulc-vasnprintf2.o libtests.a ../gllib/libgnu.a libtests.a -liconv -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-ulc-vasnprintf2] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-ulc-vasnprintf3 unistdio/test-ulc-vasnprintf3.o libtests.a ../gllib/libgnu.a libtests.a -liconv -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-ulc-vasnprintf3] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-ulc-vasprintf1 unistdio/test-ulc-vasprintf1.o libtests.a ../gllib/libgnu.a libtests.a -liconv -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-ulc-vasprintf1] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-ulc-vsnprintf1 unistdio/test-ulc-vsnprintf1.o libtests.a ../gllib/libgnu.a libtests.a -lintl -liconv -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-ulc-vsnprintf1] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-ulc-vsprintf1 unistdio/test-ulc-vsprintf1.o libtests.a ../gllib/libgnu.a libtests.a -lintl -liconv -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-ulc-vsprintf1] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-yesno test-yesno.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-yesno] Error 8 xlc -q64 -qthreaded -qtls -g -L/home/haible/prefix64/lib -o test-system-quote-main test-system-quote-main.o libtests.a ../gllib/libgnu.a libtests.a -lintl -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. gmake[4]: *** [test-system-quote-main] Error 8 The cause is that, since the native mbrtowc() function is broken on AIX, gnulib provides a replacement, and the replacement - in order to be multithread- safe - uses a lock. In the chosen thread API, the locking uses pthread_mutex_lock and pthread_mutex_unlock and thus - since these symbols are in libpthread and AIX does not support weak symbols - requires linking with '-lpthread'. The following patch documents the linking requirements of 'mbrtowc' and nearly all modules that depend on it. Here is the dependency tree (in breadth-first order): mbrtowc +-- mbfile +-- mbiter | +-- mbmemcasecmp | +-- mbsnlen | | +-- unistdio/ulc-vasnprintf | | | +-- unistdio/ulc-asnprintf | | | +-- unistdio/ulc-fprintf | | | +-- unistdio/ulc-vasprintf | | | +-- unistdio/ulc-vfprintf | | | +-- unistdio/ulc-vsnprintf | | | +-- unistdio/ulc-vsprintf | +-- trim +-- mbmemcasecoll +-- mbrlen +-- mbsinit | +-- fnmatch | | +-- fnmatch-gnu | | +-- fnmatch-posix | | +-- glob | +-- wcrtomb (not needed on AIX) | | +-- wcsnrtombs (not needed on AIX) | | +-- wcsrtombs (not needed on AIX) +-- mbsnrtowcs +-- mbsrtowcs | +-- fnmatch +-- mbswidth +-- mbuiter | +-- exclude | +-- mbscasecmp | +-- mbscasestr | +-- mbschr | +-- mbscspn | +-- mbslen | +-- mbsncasecmp | +-- mbspbrk | +-- mbspcasecmp | +-- mbsrchr | +-- mbssep | +-- mbsspn | +-- mbsstr | +-- mbstok_r | +-- propername | +-- regex-quote +-- quotearg | +-- argmatch | | +-- backup-rename | | +-- backupfile | | +-- human | +-- closeout | | +-- closein | +-- quote | | +-- acl | | +-- copy-file | | +-- mkdir-p | | +-- xfreopen | +-- quotearg-simple | +-- sh-quote | | +-- csharpcomp | | +-- csharpexec | | +-- javacomp | | +-- javaexec | | | +-- javaversion | | +-- system-quote | +-- xmemcoll +-- regex +-- dfa +-- exclude +-- rpmatch +-- yesno This fixes all the link errors above. 2019-12-02 Bruno Haible <br...@clisp.org> Fix link errors with --enable-threads=posix on AIX. * modules/mbrtowc (Link): New section. * modules/acl (Link): Likewise. * modules/argmatch (Link): Likewise. * modules/backup-rename (Link): Likewise. * modules/backupfile (Link): Likewise. * modules/closein (Link): Likewise. * modules/closeout (Link): Likewise. * modules/copy-file (Link): Likewise. * modules/csharpcomp (Link): Likewise. * modules/csharpexec (Link): Likewise. * modules/dfa (Link): Likewise. * modules/exclude (Link): Likewise. * modules/fnmatch (Link): Likewise. * modules/fnmatch-gnu (Link): Likewise. * modules/fnmatch-posix (Link): Likewise. * modules/glob (Link): Likewise. * modules/human (Link): Likewise. * modules/javacomp (Link): Likewise. * modules/javaexec (Link): Likewise. * modules/javaversion (Link): Likewise. * modules/mbfile (Link): Likewise. * modules/mbiter (Link): Likewise. * modules/mbmemcasecmp (Link): Likewise. * modules/mbmemcasecoll (Link): Likewise. * modules/mbrlen (Link): Likewise. * modules/mbscasecmp (Link): Likewise. * modules/mbscasestr (Link): Likewise. * modules/mbschr (Link): Likewise. * modules/mbscspn (Link): Likewise. * modules/mbsinit (Link): Likewise. * modules/mbslen (Link): Likewise. * modules/mbsncasecmp (Link): Likewise. * modules/mbsnlen (Link): Likewise. * modules/mbsnrtowcs (Link): Likewise. * modules/mbspbrk (Link): Likewise. * modules/mbspcasecmp (Link): Likewise. * modules/mbsrchr (Link): Likewise. * modules/mbsrtowcs (Link): Likewise. * modules/mbssep (Link): Likewise. * modules/mbsspn (Link): Likewise. * modules/mbsstr (Link): Likewise. * modules/mbstok_r (Link): Likewise. * modules/mbswidth (Link): Likewise. * modules/mbuiter (Link): Likewise. * modules/mkdir-p (Link): Likewise. * modules/propername (Link): Likewise. * modules/quote (Link): Likewise. * modules/quotearg (Link): Likewise. * modules/quotearg-simple (Link): Likewise. * modules/regex-quote (Link): Likewise. * modules/rpmatch (Link): Likewise. * modules/sh-quote (Link): Likewise. * modules/system-quote (Link): Likewise. * modules/trim (Link): Likewise. * modules/unistdio/ulc-asnprintf (Link): Likewise. * modules/unistdio/ulc-fprintf (Link): Likewise. * modules/unistdio/ulc-vasnprintf (Link): Likewise. * modules/unistdio/ulc-vasprintf (Link): Likewise. * modules/unistdio/ulc-vfprintf (Link): Likewise. * modules/unistdio/ulc-vsnprintf (Link): Likewise. * modules/unistdio/ulc-vsprintf (Link): Likewise. * modules/xfreopen (Link): Likewise. * modules/xmemcoll (Link): Likewise. * modules/yesno (Link): Likewise. * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD). * modules/argmatch-tests (Makefile.am): Likewise. * modules/closein-tests (Makefile.am): Likewise. * modules/copy-file-tests (Makefile.am): Likewise. * modules/dfa-tests (Makefile.am): Likewise. * modules/fnmatch-tests (Makefile.am): Likewise. * modules/glob-tests (Makefile.am): Likewise. * modules/mbmemcasecmp-tests (Makefile.am): Likewise. * modules/mbmemcasecoll-tests (Makefile.am): Likewise. * modules/mbrtowc-tests (Makefile.am): Likewise. * modules/mbscasecmp-tests (Makefile.am): Likewise. * modules/mbscasestr-tests (Makefile.am): Likewise. * modules/mbschr-tests (Makefile.am): Likewise. * modules/mbscspn-tests (Makefile.am): Likewise. * modules/mbsinit-tests (Makefile.am): Likewise. * modules/mbsncasecmp-tests (Makefile.am): Likewise. * modules/mbsnrtowcs-tests (Makefile.am): Likewise. * modules/mbspbrk-tests (Makefile.am): Likewise. * modules/mbspcasecmp-tests (Makefile.am): Likewise. * modules/mbsrchr-tests (Makefile.am): Likewise. * modules/mbsrtowcs-tests (Makefile.am): Likewise. * modules/mbsspn-tests (Makefile.am): Likewise. * modules/mbsstr-tests (Makefile.am): Likewise. * modules/quotearg-tests (Makefile.am): Likewise. * modules/quotearg-simple-tests (Makefile.am): Likewise. * modules/readtokens-tests (Makefile.am): Likewise. * modules/regex-quote-tests (Makefile.am): Likewise. * modules/sh-quote-tests (Makefile.am): Likewise. * modules/system-quote-tests (Makefile.am): Likewise. * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise. * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise. * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise. * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise. * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise. * modules/yesno-tests (Makefile.am): Likewise. diff --git a/modules/acl b/modules/acl index 83422bc..9c398dd 100644 --- a/modules/acl +++ b/modules/acl @@ -21,6 +21,9 @@ lib_SOURCES += copy-acl.c set-acl.c Include: "acl.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/acl-tests b/modules/acl-tests index 76e2a36..1c6b7c4 100644 --- a/modules/acl-tests +++ b/modules/acl-tests @@ -25,6 +25,6 @@ TESTS += \ test-copy-acl.sh test-copy-acl-1.sh test-copy-acl-2.sh TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL) check_PROGRAMS += test-set-mode-acl test-copy-acl test-sameacls -test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ -test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ -test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(LIBTHREAD) +test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(LIBTHREAD) +test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/argmatch b/modules/argmatch index 7814eba..7fdbe66 100644 --- a/modules/argmatch +++ b/modules/argmatch @@ -26,6 +26,9 @@ lib_SOURCES += argmatch.c Include: "argmatch.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/argmatch-tests b/modules/argmatch-tests index cc02852..1b2f3c4 100644 --- a/modules/argmatch-tests +++ b/modules/argmatch-tests @@ -9,5 +9,5 @@ configure.ac: Makefile.am: TESTS += test-argmatch check_PROGRAMS += test-argmatch -test_argmatch_LDADD = $(LDADD) @LIBINTL@ +test_argmatch_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/backup-rename b/modules/backup-rename index 3cb37dd..65ebe45 100644 --- a/modules/backup-rename +++ b/modules/backup-rename @@ -32,6 +32,9 @@ lib_SOURCES += backupfile.c backup-rename.c Include: "backupfile.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/backupfile b/modules/backupfile index 429faa6..67c7971 100644 --- a/modules/backupfile +++ b/modules/backupfile @@ -33,6 +33,9 @@ lib_SOURCES += backupfile.c backup-find.c Include: "backupfile.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/closein b/modules/closein index 6eb7b20..a5e8a53 100644 --- a/modules/closein +++ b/modules/closein @@ -19,6 +19,9 @@ lib_SOURCES += closein.c Include: "closein.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/closein-tests b/modules/closein-tests index 1cc6609..bffa63a 100644 --- a/modules/closein-tests +++ b/modules/closein-tests @@ -12,4 +12,4 @@ configure.ac: Makefile.am: TESTS += test-closein.sh check_PROGRAMS += test-closein -test_closein_LDADD = $(LDADD) @LIBINTL@ +test_closein_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/closeout b/modules/closeout index 82e91a7..5482357 100644 --- a/modules/closeout +++ b/modules/closeout @@ -21,6 +21,9 @@ lib_SOURCES += closeout.c Include: "closeout.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/copy-file b/modules/copy-file index bc15277..36d25af 100644 --- a/modules/copy-file +++ b/modules/copy-file @@ -33,6 +33,9 @@ lib_SOURCES += copy-file.h copy-file.c Include: "copy-file.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/copy-file-tests b/modules/copy-file-tests index 6b468af..d33de79 100644 --- a/modules/copy-file-tests +++ b/modules/copy-file-tests @@ -18,4 +18,4 @@ Makefile.am: TESTS += test-copy-file.sh test-copy-file-1.sh test-copy-file-2.sh TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL) check_PROGRAMS += test-copy-file -test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME) @LIBINTL@ +test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/csharpcomp b/modules/csharpcomp index e0e539e..9afcefa 100644 --- a/modules/csharpcomp +++ b/modules/csharpcomp @@ -27,6 +27,9 @@ lib_SOURCES += csharpcomp.h csharpcomp.c Include: "csharpcomp.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/csharpexec b/modules/csharpexec index af5bbfd..ed1723a 100644 --- a/modules/csharpexec +++ b/modules/csharpexec @@ -27,6 +27,9 @@ lib_SOURCES += csharpexec.h csharpexec.c Include: "csharpexec.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/dfa b/modules/dfa index 504e7f0..ee5bec8 100644 --- a/modules/dfa +++ b/modules/dfa @@ -36,6 +36,9 @@ Include: "dfa.h" "localeinfo.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/dfa-tests b/modules/dfa-tests index 9f00d81..ee4354a 100644 --- a/modules/dfa-tests +++ b/modules/dfa-tests @@ -18,4 +18,4 @@ TESTS += \ dfa-match.sh check_PROGRAMS += dfa-match-aux -dfa_match_aux_LDADD = $(LDADD) @LIBINTL@ +dfa_match_aux_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/exclude b/modules/exclude index 04fb0e5..d05fdb2 100644 --- a/modules/exclude +++ b/modules/exclude @@ -24,6 +24,9 @@ lib_SOURCES += exclude.c Include: "exclude.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/fnmatch b/modules/fnmatch index 5f2bf9c..6722457 100644 --- a/modules/fnmatch +++ b/modules/fnmatch @@ -33,6 +33,9 @@ Makefile.am: Include: <fnmatch.h> +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/fnmatch-gnu b/modules/fnmatch-gnu index 86b5225..8a592f2 100644 --- a/modules/fnmatch-gnu +++ b/modules/fnmatch-gnu @@ -19,6 +19,9 @@ Makefile.am: Include: <fnmatch.h> +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/fnmatch-posix b/modules/fnmatch-posix index 1676a76..f1e5b69 100644 --- a/modules/fnmatch-posix +++ b/modules/fnmatch-posix @@ -19,6 +19,9 @@ Makefile.am: Include: "fnmatch.h" +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/fnmatch-tests b/modules/fnmatch-tests index cb16de4..55c94cb 100644 --- a/modules/fnmatch-tests +++ b/modules/fnmatch-tests @@ -6,3 +6,4 @@ tests/macros.h Makefile.am: TESTS += test-fnmatch check_PROGRAMS += test-fnmatch +test_fnmatch_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/glob b/modules/glob index 88bfce2..0f7dad6 100644 --- a/modules/glob +++ b/modules/glob @@ -49,6 +49,9 @@ Makefile.am: Include: <glob.h> +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/glob-tests b/modules/glob-tests index 3adbe6c..5e83c43 100644 --- a/modules/glob-tests +++ b/modules/glob-tests @@ -11,3 +11,4 @@ configure.ac: Makefile.am: TESTS += test-glob check_PROGRAMS += test-glob +test_glob_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/human b/modules/human index 2ad48f2..362b858 100644 --- a/modules/human +++ b/modules/human @@ -26,6 +26,9 @@ lib_SOURCES += human.c Include: "human.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/javacomp b/modules/javacomp index 2568a9e..082a6c5 100644 --- a/modules/javacomp +++ b/modules/javacomp @@ -38,6 +38,9 @@ lib_SOURCES += javacomp.h javacomp.c Include: "javacomp.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/javaexec b/modules/javaexec index 879580a..04b997b 100644 --- a/modules/javaexec +++ b/modules/javaexec @@ -28,6 +28,9 @@ lib_SOURCES += javaexec.h javaexec.c Include: "javaexec.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/javaversion b/modules/javaversion index 83df24a..b86edb0 100644 --- a/modules/javaversion +++ b/modules/javaversion @@ -25,6 +25,9 @@ pkgdata_DATA += javaversion.class Include: "javaversion.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/mbfile b/modules/mbfile index c57a3d5..386f3e9 100644 --- a/modules/mbfile +++ b/modules/mbfile @@ -24,6 +24,9 @@ lib_SOURCES += mbfile.h mbfile.c Include: "mbfile.h" +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbiter b/modules/mbiter index 6375652..347e777 100644 --- a/modules/mbiter +++ b/modules/mbiter @@ -24,6 +24,9 @@ lib_SOURCES += mbiter.h mbiter.c Include: "mbiter.h" +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/mbmemcasecmp b/modules/mbmemcasecmp index f075720..22075b5 100644 --- a/modules/mbmemcasecmp +++ b/modules/mbmemcasecmp @@ -16,6 +16,9 @@ lib_SOURCES += mbmemcasecmp.c Include: "mbmemcasecmp.h" +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbmemcasecmp-tests b/modules/mbmemcasecmp-tests index e863f6d..29c8cf6 100644 --- a/modules/mbmemcasecmp-tests +++ b/modules/mbmemcasecmp-tests @@ -25,4 +25,4 @@ TESTS_ENVIRONMENT += \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' check_PROGRAMS += test-mbmemcasecmp - +test_mbmemcasecmp_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbmemcasecoll b/modules/mbmemcasecoll index 13da471..e0674fa 100644 --- a/modules/mbmemcasecoll +++ b/modules/mbmemcasecoll @@ -23,6 +23,9 @@ lib_SOURCES += mbmemcasecoll.c Include: "mbmemcasecoll.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/mbmemcasecoll-tests b/modules/mbmemcasecoll-tests index 8c834d7..fb308d9 100644 --- a/modules/mbmemcasecoll-tests +++ b/modules/mbmemcasecoll-tests @@ -25,4 +25,4 @@ TESTS_ENVIRONMENT += \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' check_PROGRAMS += test-mbmemcasecoll - +test_mbmemcasecoll_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbrlen b/modules/mbrlen index e3b6c5a..e1caa2a 100644 --- a/modules/mbrlen +++ b/modules/mbrlen @@ -24,6 +24,9 @@ Makefile.am: Include: <wchar.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbrtowc b/modules/mbrtowc index 83f3428..9c3efe1 100644 --- a/modules/mbrtowc +++ b/modules/mbrtowc @@ -33,6 +33,9 @@ Makefile.am: Include: <wchar.h> +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/mbrtowc-tests b/modules/mbrtowc-tests index fe948c3..a2839cb 100644 --- a/modules/mbrtowc-tests +++ b/modules/mbrtowc-tests @@ -41,3 +41,4 @@ TESTS_ENVIRONMENT += \ LOCALE_JA='@LOCALE_JA@' \ LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbrtowc test-mbrtowc-w32 +test_mbrtowc_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbscasecmp b/modules/mbscasecmp index f453ffc..2be11e0 100644 --- a/modules/mbscasecmp +++ b/modules/mbscasecmp @@ -17,6 +17,9 @@ lib_SOURCES += mbscasecmp.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbscasecmp-tests b/modules/mbscasecmp-tests index 460e998..8548050 100644 --- a/modules/mbscasecmp-tests +++ b/modules/mbscasecmp-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbscasecmp.sh TESTS_ENVIRONMENT += LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' check_PROGRAMS += test-mbscasecmp - +test_mbscasecmp_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbscasestr b/modules/mbscasestr index 939b6e4..a731dd0 100644 --- a/modules/mbscasestr +++ b/modules/mbscasestr @@ -22,6 +22,9 @@ lib_SOURCES += mbscasestr.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbscasestr-tests b/modules/mbscasestr-tests index 15d5c97..bc2df73 100644 --- a/modules/mbscasestr-tests +++ b/modules/mbscasestr-tests @@ -24,4 +24,7 @@ Makefile.am: TESTS += test-mbscasestr1 test-mbscasestr2.sh test-mbscasestr3.sh test-mbscasestr4.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbscasestr1 test-mbscasestr2 test-mbscasestr3 test-mbscasestr4 - +test_mbscasestr1_LDADD = $(LDADD) $(LIBTHREAD) +test_mbscasestr2_LDADD = $(LDADD) $(LIBTHREAD) +test_mbscasestr3_LDADD = $(LDADD) $(LIBTHREAD) +test_mbscasestr4_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbschr b/modules/mbschr index c9ec28d..ca67f30 100644 --- a/modules/mbschr +++ b/modules/mbschr @@ -17,6 +17,9 @@ lib_SOURCES += mbschr.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbschr-tests b/modules/mbschr-tests index 773eb00..f04e03c 100644 --- a/modules/mbschr-tests +++ b/modules/mbschr-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbschr.sh TESTS_ENVIRONMENT += LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbschr - +test_mbschr_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbscspn b/modules/mbscspn index 680e826..6861e61 100644 --- a/modules/mbscspn +++ b/modules/mbscspn @@ -19,6 +19,9 @@ lib_SOURCES += mbscspn.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbscspn-tests b/modules/mbscspn-tests index 3052a3b..a6eada1 100644 --- a/modules/mbscspn-tests +++ b/modules/mbscspn-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbscspn.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-mbscspn - +test_mbscspn_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbsinit b/modules/mbsinit index eb611c3..941c583 100644 --- a/modules/mbsinit +++ b/modules/mbsinit @@ -25,6 +25,9 @@ Makefile.am: Include: <wchar.h> +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/mbsinit-tests b/modules/mbsinit-tests index 5225c36..e509efe 100644 --- a/modules/mbsinit-tests +++ b/modules/mbsinit-tests @@ -17,4 +17,4 @@ Makefile.am: TESTS += test-mbsinit.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-mbsinit - +test_mbsinit_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbslen b/modules/mbslen index 5af2128..ed8dfe7 100644 --- a/modules/mbslen +++ b/modules/mbslen @@ -19,6 +19,9 @@ lib_SOURCES += mbslen.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbsncasecmp b/modules/mbsncasecmp index 8f46b62..2857f4f 100644 --- a/modules/mbsncasecmp +++ b/modules/mbsncasecmp @@ -17,6 +17,9 @@ lib_SOURCES += mbsncasecmp.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbsncasecmp-tests b/modules/mbsncasecmp-tests index 1844904..ad04325 100644 --- a/modules/mbsncasecmp-tests +++ b/modules/mbsncasecmp-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbsncasecmp.sh TESTS_ENVIRONMENT += LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' check_PROGRAMS += test-mbsncasecmp - +test_mbsncasecmp_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbsnlen b/modules/mbsnlen index 9be1cdd..fa22964 100644 --- a/modules/mbsnlen +++ b/modules/mbsnlen @@ -17,6 +17,9 @@ lib_SOURCES += mbsnlen.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/mbsnrtowcs b/modules/mbsnrtowcs index 2ad4814..b1a9721 100644 --- a/modules/mbsnrtowcs +++ b/modules/mbsnrtowcs @@ -29,6 +29,9 @@ Makefile.am: Include: <wchar.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbsnrtowcs-tests b/modules/mbsnrtowcs-tests index 1a53405..ac67c85 100644 --- a/modules/mbsnrtowcs-tests +++ b/modules/mbsnrtowcs-tests @@ -31,4 +31,4 @@ TESTS_ENVIRONMENT += \ LOCALE_JA='@LOCALE_JA@' \ LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbsnrtowcs - +test_mbsnrtowcs_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbspbrk b/modules/mbspbrk index 2851f2f..77bf03f 100644 --- a/modules/mbspbrk +++ b/modules/mbspbrk @@ -19,6 +19,9 @@ lib_SOURCES += mbspbrk.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbspbrk-tests b/modules/mbspbrk-tests index 77a305a..587ff5d 100644 --- a/modules/mbspbrk-tests +++ b/modules/mbspbrk-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbspbrk.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-mbspbrk - +test_mbspbrk_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbspcasecmp b/modules/mbspcasecmp index fde5e73..9e87536 100644 --- a/modules/mbspcasecmp +++ b/modules/mbspcasecmp @@ -17,6 +17,9 @@ lib_SOURCES += mbspcasecmp.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbspcasecmp-tests b/modules/mbspcasecmp-tests index 5f38e22..e1b87c3 100644 --- a/modules/mbspcasecmp-tests +++ b/modules/mbspcasecmp-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbspcasecmp.sh TESTS_ENVIRONMENT += LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' check_PROGRAMS += test-mbspcasecmp - +test_mbspcasecmp_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbsrchr b/modules/mbsrchr index 12a9daf..b73b59f 100644 --- a/modules/mbsrchr +++ b/modules/mbsrchr @@ -17,6 +17,9 @@ lib_SOURCES += mbsrchr.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbsrchr-tests b/modules/mbsrchr-tests index d848037..326d566 100644 --- a/modules/mbsrchr-tests +++ b/modules/mbsrchr-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbsrchr.sh TESTS_ENVIRONMENT += LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbsrchr - +test_mbsrchr_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbsrtowcs b/modules/mbsrtowcs index d4e5e6f..c742f49 100644 --- a/modules/mbsrtowcs +++ b/modules/mbsrtowcs @@ -32,6 +32,9 @@ Makefile.am: Include: <wchar.h> +Link: +$(LIBTHREAD) + License: LGPLv2+ diff --git a/modules/mbsrtowcs-tests b/modules/mbsrtowcs-tests index 74dcd63..24dfa3f 100644 --- a/modules/mbsrtowcs-tests +++ b/modules/mbsrtowcs-tests @@ -31,4 +31,4 @@ TESTS_ENVIRONMENT += \ LOCALE_JA='@LOCALE_JA@' \ LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbsrtowcs - +test_mbsrtowcs_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbssep b/modules/mbssep index 74f083a..465dc51 100644 --- a/modules/mbssep +++ b/modules/mbssep @@ -19,6 +19,9 @@ lib_SOURCES += mbssep.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbsspn b/modules/mbsspn index ad548b4..6cec1da 100644 --- a/modules/mbsspn +++ b/modules/mbsspn @@ -18,6 +18,9 @@ lib_SOURCES += mbsspn.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbsspn-tests b/modules/mbsspn-tests index ed7e47a..8a5fe23 100644 --- a/modules/mbsspn-tests +++ b/modules/mbsspn-tests @@ -15,4 +15,4 @@ Makefile.am: TESTS += test-mbsspn.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-mbsspn - +test_mbsspn_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbsstr b/modules/mbsstr index 21d6838..5b418dc 100644 --- a/modules/mbsstr +++ b/modules/mbsstr @@ -22,6 +22,9 @@ lib_SOURCES += mbsstr.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbsstr-tests b/modules/mbsstr-tests index 01e605d..a0a878b 100644 --- a/modules/mbsstr-tests +++ b/modules/mbsstr-tests @@ -20,4 +20,6 @@ Makefile.am: TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3 - +test_mbsstr1_LDADD = $(LDADD) $(LIBTHREAD) +test_mbsstr2_LDADD = $(LDADD) $(LIBTHREAD) +test_mbsstr3_LDADD = $(LDADD) $(LIBTHREAD) diff --git a/modules/mbstok_r b/modules/mbstok_r index 5fdcaa0..67de3d7 100644 --- a/modules/mbstok_r +++ b/modules/mbstok_r @@ -20,6 +20,9 @@ lib_SOURCES += mbstok_r.c Include: <string.h> +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mbswidth b/modules/mbswidth index a34dd28..934ab59 100644 --- a/modules/mbswidth +++ b/modules/mbswidth @@ -25,6 +25,9 @@ lib_SOURCES += mbswidth.h mbswidth.c Include: "mbswidth.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/mbuiter b/modules/mbuiter index bf149bd..6763f0b 100644 --- a/modules/mbuiter +++ b/modules/mbuiter @@ -25,6 +25,9 @@ lib_SOURCES += mbuiter.h mbuiter.c Include: "mbuiter.h" +Link: +$(LIBTHREAD) + License: LGPL diff --git a/modules/mkdir-p b/modules/mkdir-p index 479b92e..72f8b09 100644 --- a/modules/mkdir-p +++ b/modules/mkdir-p @@ -33,6 +33,9 @@ lib_SOURCES += dirchownmod.c mkdir-p.c Include: "mkdir-p.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/propername b/modules/propername index c924184..22d6073 100644 --- a/modules/propername +++ b/modules/propername @@ -35,6 +35,9 @@ lib_SOURCES += propername.h propername.c Include: "propername.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/quote b/modules/quote index d55d2bf..a01a16d 100644 --- a/modules/quote +++ b/modules/quote @@ -16,6 +16,9 @@ Makefile.am: Include: "quote.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/quotearg b/modules/quotearg index 109a16d..3d56dc5 100644 --- a/modules/quotearg +++ b/modules/quotearg @@ -34,6 +34,9 @@ lib_SOURCES += quotearg.c Include: "quotearg.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/quotearg-simple b/modules/quotearg-simple index f91c0f3..5ba13ce 100644 --- a/modules/quotearg-simple +++ b/modules/quotearg-simple @@ -12,6 +12,9 @@ Makefile.am: Include: +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/quotearg-simple-tests b/modules/quotearg-simple-tests index 3c932f0..701da5f 100644 --- a/modules/quotearg-simple-tests +++ b/modules/quotearg-simple-tests @@ -18,4 +18,4 @@ AC_CHECK_FUNCS_ONCE([mprotect]) Makefile.am: TESTS += test-quotearg-simple check_PROGRAMS += test-quotearg-simple -test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@ +test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/quotearg-tests b/modules/quotearg-tests index 885d459..61aa27c 100644 --- a/modules/quotearg-tests +++ b/modules/quotearg-tests @@ -27,4 +27,4 @@ Makefile.am: TESTS += test-quotearg.sh TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-quotearg -test_quotearg_LDADD = $(LDADD) @LIBINTL@ +test_quotearg_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/readtokens-tests b/modules/readtokens-tests index e29c2ff..5e83e47 100644 --- a/modules/readtokens-tests +++ b/modules/readtokens-tests @@ -11,4 +11,4 @@ configure.ac: Makefile.am: TESTS += test-readtokens.sh check_PROGRAMS += test-readtokens -test_readtokens_LDADD = $(LDADD) @LIBINTL@ +test_readtokens_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/regex-quote b/modules/regex-quote index ae27afc..085e5b6 100644 --- a/modules/regex-quote +++ b/modules/regex-quote @@ -18,6 +18,9 @@ lib_SOURCES += regex-quote.c Include: "regex-quote.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/regex-quote-tests b/modules/regex-quote-tests index a1a63cd..b396a00 100644 --- a/modules/regex-quote-tests +++ b/modules/regex-quote-tests @@ -11,4 +11,4 @@ configure.ac: Makefile.am: TESTS += test-regex-quote check_PROGRAMS += test-regex-quote -test_regex_quote_LDADD = $(LDADD) $(LIBINTL) +test_regex_quote_LDADD = $(LDADD) $(LIBINTL) $(LIBTHREAD) diff --git a/modules/rpmatch b/modules/rpmatch index f64286b..3b754c6 100644 --- a/modules/rpmatch +++ b/modules/rpmatch @@ -27,6 +27,7 @@ Include: <stdlib.h> Link: +$(LIBTHREAD) $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise License: diff --git a/modules/sh-quote b/modules/sh-quote index 4581cbd..a95dea9 100644 --- a/modules/sh-quote +++ b/modules/sh-quote @@ -17,6 +17,9 @@ lib_SOURCES += sh-quote.h sh-quote.c Include: "sh-quote.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/sh-quote-tests b/modules/sh-quote-tests index ac6101a..8252fee 100644 --- a/modules/sh-quote-tests +++ b/modules/sh-quote-tests @@ -8,4 +8,4 @@ configure.ac: Makefile.am: TESTS += test-sh-quote check_PROGRAMS += test-sh-quote -test_sh_quote_LDADD = $(LDADD) @LIBINTL@ +test_sh_quote_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/system-quote b/modules/system-quote index 14c0e29..09503e5 100644 --- a/modules/system-quote +++ b/modules/system-quote @@ -17,6 +17,9 @@ lib_SOURCES += system-quote.h system-quote.c Include: "system-quote.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/system-quote-tests b/modules/system-quote-tests index eb69bbd..413453b 100644 --- a/modules/system-quote-tests +++ b/modules/system-quote-tests @@ -18,7 +18,7 @@ configure.ac: Makefile.am: TESTS += test-system-quote.sh check_PROGRAMS += test-system-quote-main test-system-quote-child -test_system_quote_main_LDADD = $(LDADD) @LIBINTL@ +test_system_quote_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) # The test-system-quote-child program must be a real executable, not a libtool # wrapper script, and should link against as few libraries as possible. # Therefore don't link it against any libraries other than -lc. diff --git a/modules/trim b/modules/trim index c954509..13d3579 100644 --- a/modules/trim +++ b/modules/trim @@ -20,6 +20,9 @@ lib_SOURCES += trim.c Include: "trim.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/unistdio/ulc-asnprintf b/modules/unistdio/ulc-asnprintf index 84772cc..a0c1d1f 100644 --- a/modules/unistdio/ulc-asnprintf +++ b/modules/unistdio/ulc-asnprintf @@ -21,6 +21,9 @@ endif Include: "unistdio.h" +Link: +$(LIBTHREAD) + License: LGPLv3+ or GPLv2 diff --git a/modules/unistdio/ulc-asnprintf-tests b/modules/unistdio/ulc-asnprintf-tests index 9614b8b..276c7e5 100644 --- a/modules/unistdio/ulc-asnprintf-tests +++ b/modules/unistdio/ulc-asnprintf-tests @@ -12,4 +12,4 @@ Makefile.am: TESTS += test-ulc-asnprintf1 check_PROGRAMS += test-ulc-asnprintf1 test_ulc_asnprintf1_SOURCES = unistdio/test-ulc-asnprintf1.c -test_ulc_asnprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ +test_ulc_asnprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ $(LIBTHREAD) diff --git a/modules/unistdio/ulc-fprintf b/modules/unistdio/ulc-fprintf index ed4a70a..ad3d2d8 100644 --- a/modules/unistdio/ulc-fprintf +++ b/modules/unistdio/ulc-fprintf @@ -21,6 +21,9 @@ endif Include: "unistdio.h" +Link: +$(LIBTHREAD) + License: LGPLv3+ or GPLv2 diff --git a/modules/unistdio/ulc-vasnprintf b/modules/unistdio/ulc-vasnprintf index 2c2adb3..5febf32 100644 --- a/modules/unistdio/ulc-vasnprintf +++ b/modules/unistdio/ulc-vasnprintf @@ -58,6 +58,9 @@ endif Include: "unistdio.h" +Link: +$(LIBTHREAD) + License: LGPLv3+ or GPLv2 diff --git a/modules/unistdio/ulc-vasnprintf-tests b/modules/unistdio/ulc-vasnprintf-tests index 20e2f71..b72c188 100644 --- a/modules/unistdio/ulc-vasnprintf-tests +++ b/modules/unistdio/ulc-vasnprintf-tests @@ -22,8 +22,8 @@ TESTS += test-ulc-vasnprintf1 unistdio/test-ulc-vasnprintf2.sh unistdio/test-ulc TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-ulc-vasnprintf1 test-ulc-vasnprintf2 test-ulc-vasnprintf3 test_ulc_vasnprintf1_SOURCES = unistdio/test-ulc-vasnprintf1.c -test_ulc_vasnprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ +test_ulc_vasnprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ $(LIBTHREAD) test_ulc_vasnprintf2_SOURCES = unistdio/test-ulc-vasnprintf2.c -test_ulc_vasnprintf2_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ +test_ulc_vasnprintf2_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ $(LIBTHREAD) test_ulc_vasnprintf3_SOURCES = unistdio/test-ulc-vasnprintf3.c -test_ulc_vasnprintf3_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ +test_ulc_vasnprintf3_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ $(LIBTHREAD) diff --git a/modules/unistdio/ulc-vasprintf b/modules/unistdio/ulc-vasprintf index 6d678bd..19965c1 100644 --- a/modules/unistdio/ulc-vasprintf +++ b/modules/unistdio/ulc-vasprintf @@ -21,6 +21,9 @@ endif Include: "unistdio.h" +Link: +$(LIBTHREAD) + License: LGPLv3+ or GPLv2 diff --git a/modules/unistdio/ulc-vasprintf-tests b/modules/unistdio/ulc-vasprintf-tests index 27549d7..b034f3f 100644 --- a/modules/unistdio/ulc-vasprintf-tests +++ b/modules/unistdio/ulc-vasprintf-tests @@ -11,4 +11,4 @@ Makefile.am: TESTS += test-ulc-vasprintf1 check_PROGRAMS += test-ulc-vasprintf1 test_ulc_vasprintf1_SOURCES = unistdio/test-ulc-vasprintf1.c -test_ulc_vasprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ +test_ulc_vasprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ $(LIBTHREAD) diff --git a/modules/unistdio/ulc-vfprintf b/modules/unistdio/ulc-vfprintf index b7a7da7..28d19ab 100644 --- a/modules/unistdio/ulc-vfprintf +++ b/modules/unistdio/ulc-vfprintf @@ -21,6 +21,9 @@ endif Include: "unistdio.h" +Link: +$(LIBTHREAD) + License: LGPLv3+ or GPLv2 diff --git a/modules/unistdio/ulc-vsnprintf b/modules/unistdio/ulc-vsnprintf index b390b91..c204b75 100644 --- a/modules/unistdio/ulc-vsnprintf +++ b/modules/unistdio/ulc-vsnprintf @@ -21,6 +21,9 @@ endif Include: "unistdio.h" +Link: +$(LIBTHREAD) + License: LGPLv3+ or GPLv2 diff --git a/modules/unistdio/ulc-vsnprintf-tests b/modules/unistdio/ulc-vsnprintf-tests index 112456b..029a825 100644 --- a/modules/unistdio/ulc-vsnprintf-tests +++ b/modules/unistdio/ulc-vsnprintf-tests @@ -12,4 +12,4 @@ Makefile.am: TESTS += test-ulc-vsnprintf1 check_PROGRAMS += test-ulc-vsnprintf1 test_ulc_vsnprintf1_SOURCES = unistdio/test-ulc-vsnprintf1.c -test_ulc_vsnprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ @LIBICONV@ +test_ulc_vsnprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ @LIBICONV@ $(LIBTHREAD) diff --git a/modules/unistdio/ulc-vsprintf b/modules/unistdio/ulc-vsprintf index 79a9bc5..b536826 100644 --- a/modules/unistdio/ulc-vsprintf +++ b/modules/unistdio/ulc-vsprintf @@ -22,6 +22,9 @@ endif Include: "unistdio.h" +Link: +$(LIBTHREAD) + License: LGPLv3+ or GPLv2 diff --git a/modules/unistdio/ulc-vsprintf-tests b/modules/unistdio/ulc-vsprintf-tests index 147dc9b..32b1b5c 100644 --- a/modules/unistdio/ulc-vsprintf-tests +++ b/modules/unistdio/ulc-vsprintf-tests @@ -12,4 +12,4 @@ Makefile.am: TESTS += test-ulc-vsprintf1 check_PROGRAMS += test-ulc-vsprintf1 test_ulc_vsprintf1_SOURCES = unistdio/test-ulc-vsprintf1.c -test_ulc_vsprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ @LIBICONV@ +test_ulc_vsprintf1_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ @LIBICONV@ $(LIBTHREAD) diff --git a/modules/xfreopen b/modules/xfreopen index 850446d..63266db 100644 --- a/modules/xfreopen +++ b/modules/xfreopen @@ -19,6 +19,9 @@ lib_SOURCES += xfreopen.c xfreopen.h Include: "xfreopen.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/xmemcoll b/modules/xmemcoll index 06d06a3..4f13d85 100644 --- a/modules/xmemcoll +++ b/modules/xmemcoll @@ -20,6 +20,9 @@ lib_SOURCES += xmemcoll.h xmemcoll.c Include: "xmemcoll.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/yesno b/modules/yesno index 5b5f4cd..8ae50df 100644 --- a/modules/yesno +++ b/modules/yesno @@ -21,6 +21,9 @@ lib_SOURCES += yesno.c Include: "yesno.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/yesno-tests b/modules/yesno-tests index 4582cef..8836ee8 100644 --- a/modules/yesno-tests +++ b/modules/yesno-tests @@ -12,4 +12,4 @@ configure.ac: Makefile.am: TESTS += test-yesno.sh check_PROGRAMS += test-yesno -test_yesno_LDADD = $(LDADD) @LIBINTL@ +test_yesno_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)