diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-21 02:57:29 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-21 02:57:29 +0000 |
commit | 0f1c8b8df4a4bd8596282a341a5564195ecd340a (patch) | |
tree | 39859596c62f878a9f2957c3a40d36e48c475044 /Makefile | |
parent | bc32cd5adfe0da2d1d1a08c6bc5b04b9e7d0160e (diff) |
FreeBSD patch, take 2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1638 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -98,6 +98,9 @@ CFLAGS=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarati CFLAGS+=$(OPTIMIZE) CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi) CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi) +ifeq (${OSARCH},FreeBSD) +CFLAGS+=-pthread +endif ifeq (${OSARCH},OpenBSD) CFLAGS+=-pthread endif @@ -131,7 +134,18 @@ SUBDIRS=res channels pbx apps codecs formats agi cdr astman ifeq (${OSARCH},Linux) LIBS=-ldl endif -LIBS+=-lpthread -lncurses -lm -lresolv #-lnjamd +ifeq (${OSARCH},OpenBSD) +LIBS=-pthread +else +ifeq (${OSARCH},FreeBSD) +LIBS=-pthread +else +endif +endif +LIBS+=-lncurses -lm +ifeq (${OSARCH},Linux) +LIBS+=-lresolv #-lnjamd +endif OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \ translate.o file.o say.o pbx.o cli.o md5.o term.o \ ulaw.o alaw.o callerid.o fskmodem.o image.o app.o \ |