From 1c642a5bb1674ca52e09dd10ec6b0261519f86e1 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 28 Nov 2011 11:43:28 +0000 Subject: - Fix build with CLANG PR: 162540 Submitted by: Jan Beich Approved by: maintainer timeout Feature safe: yes --- lang/phc/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lang/phc') 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 -- cgit v1.2.3