diff options
author | Matthias Kilian <kili@outback.escape.de> | 2008-11-29 00:06:38 +0000 |
---|---|---|
committer | Matthias Kilian <kili@outback.escape.de> | 2008-11-29 00:06:38 +0000 |
commit | 370303a70815fcf76258d9f6938ba0e2b67fb2d3 (patch) | |
tree | b72ae3b37218857b34387790142e8b3437a07b18 /configure.ac | |
parent | 3b98a03c3e467218e7f19ae0a0d7fb90ba7b687d (diff) |
fix pthread linkage problem for openbsd
This should make my openbsd build slave happy when SplitObjs=NO.
May be useful for other BSDs and even Linux, regardless wether you
need -pthread or -lpthread. Time will tell...
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5283a55..83f010b 100644 --- a/configure.ac +++ b/configure.ac @@ -194,6 +194,22 @@ fi AC_CHECK_LIB(dl, dlopen, [EXTRA_LIBS="$EXTRA_LIBS dl"]) 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_CONFIG_FILES([unix.buildinfo]) AC_OUTPUT |