summaryrefslogtreecommitdiff
path: root/main/Makefile
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-05 21:27:04 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-05 21:27:04 +0000
commitb80dc4170725019cc2357da273b7d47b8cba176a (patch)
tree2e93ac16c408cd4dff4f4d3b1070120f162c50ee /main/Makefile
parenta33b10fe0006ad11defb4444413337a259557f6a (diff)
Move the last instance of AST_LIBS to the only place it is used,
namely main/Makefile . I am unclear where decisions on the build environment (CFLAGS, LDFLAGS, LIBS and so on) should be made - right now they are split here and there. As a first step in cleaning up this situation, i am trying to at least collect all instances of each variable in one place. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/Makefile')
-rw-r--r--main/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/Makefile b/main/Makefile
index b91be6cdc..3f1815907 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -85,6 +85,9 @@ else
endif
ifeq ($(OSARCH),FreeBSD)
+ # -V is understood by BSD Make, not by GNU make.
+ BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
+ AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
AST_LIBS+=-lcrypto
endif