From: Luigi Rizzo Date: Fri, 25 Aug 2006 20:10:56 +0000 (+0000) Subject: we really need BSD make here to understand the -V option. X-Git-Tag: 1.4.0-beta1~281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=379dc2474516fcff89681edc8a4e184fa7444dbd;p=thirdparty%2Fasterisk.git we really need BSD make here to understand the -V option. Fix and document this. (problem introduced in SVN 40753) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41147 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index 24fbb96ddf..ae6f94c266 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