diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2019-04-07 16:18:54 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2019-04-07 16:18:54 +0000 |
commit | 6453ddb81670d458a7f2c6245c38763c2a85705e (patch) | |
tree | 18c984210c5666184a3d83a0e7a94680739ed95f /net/asterisk13 | |
parent | a29b4c164be506900f71941a808ca61118975f90 (diff) | |
download | ports-6453ddb81670d458a7f2c6245c38763c2a85705e.tar.gz ports-6453ddb81670d458a7f2c6245c38763c2a85705e.zip |
Fix build on live system when gcc 8 is also installed.
PR: 237058
Submitted by: VVD <vvd@unislabs.com>
Notes
Notes:
svn path=/head/; revision=498283
Diffstat (limited to 'net/asterisk13')
-rw-r--r-- | net/asterisk13/files/patch-Makefile.rules | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/asterisk13/files/patch-Makefile.rules b/net/asterisk13/files/patch-Makefile.rules new file mode 100644 index 000000000000..073e2819a5e0 --- /dev/null +++ b/net/asterisk13/files/patch-Makefile.rules @@ -0,0 +1,11 @@ +--- Makefile.rules.orig 2019-04-04 14:46:29 UTC ++++ Makefile.rules +@@ -68,7 +68,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 |