diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-28 17:11:30 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-28 17:11:30 +0000 |
commit | 0148ea8a110889c99ce7dffefa0eea971d31fd29 (patch) | |
tree | 903ba35aeeab254aae0fdb2059f4d21ffbd34f2e /Makefile | |
parent | d8c84c5f94c422d0f49a8ae94e63709ffa788a9a (diff) |
Fix threads in FreeBSD (bug #2478)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3850 f38db490-d61c-443f-a65b-d21fe96a405b
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 |