aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-25 20:10:56 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-25 20:10:56 +0000
commit4d8047ba7c7500cd0873c0cfa42882956bf82416 (patch)
treed36d3a4d6dadaa43654fd42f97a858233adfe33d /Makefile
parent3e4bef9df98ad7835894b25243e062ee042ebc95 (diff)
we really need BSD make here to understand the -V option.
Fix and document this. (problem introduced in SVN 40753) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41147 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 24fbb96dd..ae6f94c26 100644
--- a/Makefile
+++ b/Makefile
@@ -163,7 +163,8 @@ ifeq ($(PROC),ppc)
endif
ifeq ($(OSARCH),FreeBSD)
- BSDVERSION=$(shell $(MAKE) -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
+ # -V is understood by BSD Make, not by GNU make.
+ BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
endif