+* [Bug 2332] Be more careful about when we use 'libgcc_s'.
(4.2.7p415) 2014/01/28 Released by Harlan Stenn <stenn@ntp.org>
* Fix the man page installation for the scripts/ files.
(4.2.7p414) 2014/01/28 Released by Harlan Stenn <stenn@ntp.org>
yes)
PTHREAD_LIBS="$LTHREAD_LIBS"
have_pthreads=yes
- # Bug 2332: With GCC we need to force a reference to libgcc_s, or the
- # combination threads + setuid + mlockall does not work on linux
- # because thread cancellation fails to load libgcc_s with dlopen().
+ # Bug 2332: With GCC we need to force a reference to libgcc_s
+ # (if libgcc_s exists) or the combination of
+ # threads + setuid + mlockall does not work on linux because
+ # thread cancellation fails to load libgcc_s with dlopen().
# We have to pass this all as linker options to avoid argument
# reordering by libtool.
case "$GCC$with_gnu_ld" in
yesyes)
- PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
+ AC_CHECK_LIB([gcc_s], [exit],
+ [PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"])
;;
esac
esac