Mercurial > libpst
comparison configure.ac @ 393:ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
The uncompress and sem_* functions are used by various parts of the code
but the files built from that code were not linked with zlib/pthread/rt.
This fixes building with the --no-add-needed linker option.
Fixes: https://bugs.debian.org/604796
author | Paul Wise <pabs3@bonedaddy.net> |
---|---|
date | Mon, 23 Dec 2019 12:23:22 +0800 |
parents | 54465fca8b9e |
children | 3cbda103e0ef |
comparison
equal
deleted
inserted
replaced
392:54465fca8b9e | 393:ffbb5e3f2551 |
---|---|
171 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes]) | 171 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes]) |
172 ) | 172 ) |
173 AC_HEADER_DIRENT | 173 AC_HEADER_DIRENT |
174 AC_HEADER_STDC | 174 AC_HEADER_STDC |
175 AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h inttypes.h limits.h regex.h semaphore.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/param.h sys/shm.h sys/stat.h sys/types.h time.h unistd.h wchar.h]) | 175 AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h inttypes.h limits.h regex.h semaphore.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/param.h sys/shm.h sys/stat.h sys/types.h time.h unistd.h wchar.h]) |
176 AC_SEARCH_LIBS([sem_init],[pthread rt]) | 176 save_libs="$LIBS" ; LIBS="" |
177 AC_SEARCH_LIBS([sem_init], [pthread rt], [SEM_LIBS="$LIBS"], [AC_MSG_ERROR([sem_init missing])]) | |
178 AC_SUBST([SEM_LIBS]) | |
179 LIBS="$save_libs" | |
177 | 180 |
178 | 181 |
179 # Checks for typedefs, structures, and compiler characteristics. | 182 # Checks for typedefs, structures, and compiler characteristics. |
180 AC_HEADER_STDBOOL | 183 AC_HEADER_STDBOOL |
181 AC_HEADER_SYS_WAIT | 184 AC_HEADER_SYS_WAIT |