From 8b42787b24549191ee7af71210b0d3ac9183a80c Mon Sep 17 00:00:00 2001 From: markster Date: Thu, 16 Oct 2003 10:44:04 +0000 Subject: Sane FreeBSD patch git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1635 f38db490-d61c-443f-a65b-d21fe96a405b --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3e97c7ef2..c4d9ababb 100755 --- a/Makefile +++ b/Makefile @@ -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) +-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 \ -- cgit v1.2.3