diff options
author | Mark Spencer <markster@digium.com> | 2004-09-28 17:11:30 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-09-28 17:11:30 +0000 |
commit | 89da44223dab4e532ab286d577890b8d5eb9b90d (patch) | |
tree | 903ba35aeeab254aae0fdb2059f4d21ffbd34f2e /Makefile | |
parent | ddf2648326525b4b3ccf57a9861234d19241de6f (diff) |
Fix threads in FreeBSD (bug #2478)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -138,8 +138,8 @@ CFLAGS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "-DOSP_SUPPORT -I/us ifeq (${OSARCH},FreeBSD) OSVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk) -CFLAGS+=$(if ${OSVERSION}<500016,-D_THREAD_SAFE) -LIBS+=$(if ${OSVERSION}<502102,-lc_r,-pthread) +CFLAGS+=$(shell if test ${OSVERSION} -lt 500016 ; then echo "-D_THREAD_SAFE"; fi) +LIBS+=$(shell if test ${OSVERSION} -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi) INCLUDE+=-I/usr/local/include CFLAGS+=$(shell if [ -d /usr/local/include/spandsp ]; then echo "-I/usr/local/include/spandsp"; fi) endif # FreeBSD |