summaryrefslogtreecommitdiff
path: root/net/asterisk16/files/patch-Makefile.rules
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2019-04-07 16:19:13 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2019-04-07 16:19:13 +0000
commita567d2f31992494ec6ec4ac3efeb04190e9550bf (patch)
treed5d1137eab7b98bc99414fed81b1339bab1b12be /net/asterisk16/files/patch-Makefile.rules
parentFix build on live system when gcc 8 is also installed. (diff)
Fix build on live system when gcc 8 is also installed.
PR: 237058 Submitted by: VVD <vvd@unislabs.com>
Diffstat (limited to '')
-rw-r--r--net/asterisk16/files/patch-Makefile.rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/asterisk16/files/patch-Makefile.rules b/net/asterisk16/files/patch-Makefile.rules
new file mode 100644
index 000000000000..32086bd1374e
--- /dev/null
+++ b/net/asterisk16/files/patch-Makefile.rules
@@ -0,0 +1,11 @@
+--- Makefile.rules.orig 2019-04-04 14:49:57 UTC
++++ Makefile.rules
+@@ -71,7 +71,7 @@ ifneq ($(findstring darwin,$(OSARCH)),)
+ endif
+
+ # gcc version 8.2.1 and above must have partial-inlining disabled to avoid documented bug
+-GCC_VER_GTE821:=$(shell expr `gcc --version | grep ^gcc | cut -d ' ' -f 3 | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 80201)
++GCC_VER_GTE821:=$(shell expr `$(CC) --version | grep ^gcc | cut -d ' ' -f 3 | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 80201)
+ ifeq ($(GCC_VER_GTE821),1)
+ OPTIMIZE+=-fno-partial-inlining
+ endif