Skip to content
Snippets Groups Projects
Commit dd0178b4 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Proper autoconf test for sem_close's library; fixes trac #4523

parent cc322963
No related branches found
No related tags found
No related merge requests found
......@@ -207,18 +207,9 @@ AC_SUBST([EXTRA_LIBS])
# -{l,}pthread goo
AC_CANONICAL_TARGET
PTHREAD_CFLAGS=
PTHREAD_LDFLAGS=
PTHREAD_LIBS=
case "$host_os" in
openbsd*)
PTHREAD_CFLAGS=-pthread
PTHREAD_LDFLAGS=-pthread
;;
esac
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_LDFLAGS)
AC_SUBST(PTHREAD_LIBS)
AC_SEARCH_LIBS(sem_close, pthread,
[EXTRA_LIBS="$EXTRA_LIBS $ac_lib"],
[AC_MSG_NOTICE([Not found])])
AC_CONFIG_FILES([unix.buildinfo])
......
buildable: @BUILD_PACKAGE_BOOL@
cc-options: @PTHREAD_CFLAGS@
ld-options: @PTHREAD_LDFLAGS@
extra-libraries: @EXTRA_LIBS@ @PTHREAD_LIBS@
extra-libraries: @EXTRA_LIBS@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment