diff options
author | miwi <miwi@FreeBSD.org> | 2011-11-28 19:43:28 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2011-11-28 19:43:28 +0800 |
commit | b15b9544499bc0082ab5321788d3b3c9a2f6cdbb (patch) | |
tree | b2b87ae26e165599189c115cb65c478a34a8a84d /lang/phc | |
parent | 449155d5fd6c9b361793829696126220daa01ebe (diff) | |
download | freebsd-ports-gnome-b15b9544499bc0082ab5321788d3b3c9a2f6cdbb.tar.gz freebsd-ports-gnome-b15b9544499bc0082ab5321788d3b3c9a2f6cdbb.tar.zst freebsd-ports-gnome-b15b9544499bc0082ab5321788d3b3c9a2f6cdbb.zip |
- Fix build with CLANG
PR: 162540
Submitted by: Jan Beich <jbeich@tormail.net>
Approved by: maintainer timeout
Feature safe: yes
Diffstat (limited to 'lang/phc')
-rw-r--r-- | lang/phc/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lang/phc/Makefile b/lang/phc/Makefile index 25694eccba69..5593fa78b8f4 100644 --- a/lang/phc/Makefile +++ b/lang/phc/Makefile @@ -16,5 +16,12 @@ COMMENT= A compiler for the PHP language USE_GMAKE= yes GNU_CONFIGURE= yes +CFLAGS+= -fgnu89-inline + +post-patch: .SILENT + ${REINPLACE_CMD} 's/g++/$$CXX/' \ + ${WRKSRC}/phc_compile_plugin.in + ${REINPLACE_CMD} 's/insert/this->&/' \ + ${WRKSRC}/include/phc/lib/List.h .include <bsd.port.mk> |