From owner-svn-ports-all@freebsd.org Sat Jun 27 00:35:26 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFC3998D900; Sat, 27 Jun 2015 00:35:26 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 970A21ACC; Sat, 27 Jun 2015 00:35:26 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5R0ZQIY077997; Sat, 27 Jun 2015 00:35:26 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5R0ZQfZ077996; Sat, 27 Jun 2015 00:35:26 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201506270035.t5R0ZQfZ077996@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sat, 27 Jun 2015 00:35:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390681 - head/lang/moscow_ml X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2015 00:35:26 -0000 Author: amdmi3 Date: Sat Jun 27 00:35:25 2015 New Revision: 390681 URL: https://svnweb.freebsd.org/changeset/ports/390681 Log: - Fix build on 10.1: disable -fno-defer-pop flag which is not known by clang Makefile says this flag is crucial for gcc to disable certain optimization, but I assume clang doesn't have this optimization as it doesn't support the flag. clang >= 3.6 handles unknown flags with a mere warnings, so the modification is only needed for clang < 3.6 Submitted by: pkg-fallout Approved by: portmgr blanket Modified: head/lang/moscow_ml/Makefile Modified: head/lang/moscow_ml/Makefile ============================================================================== --- head/lang/moscow_ml/Makefile Fri Jun 26 23:57:43 2015 (r390680) +++ head/lang/moscow_ml/Makefile Sat Jun 27 00:35:25 2015 (r390681) @@ -16,7 +16,7 @@ LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/ RESTRICTED= Restrictions on for-profit distribution -USES= perl5 +USES= compiler:features perl5 ALL_TARGET= world MAKE_ARGS= MOSMLHOME="${MOSMLHOME}" DOCSDIR="${DOCSDIR}" \ LD_RUN_PATH="${PREFIX}/lib/mosml" @@ -28,7 +28,13 @@ SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS EXAMPLES +.include + post-patch: .SILENT +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 36 + ${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ + ${REINPLACE_CMD} -e "s,-fno-defer-pop,," +.endif ${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ ${REINPLACE_CMD} -e "s,-O2,${CFLAGS} -I${LOCALBASE}/include," ${FIND} ${WRKDIR}/mosml/examples -name Makefile -o \ @@ -69,4 +75,4 @@ post-install: ${STAGEDIR}${PREFIX}/lib/mosml/header @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mosml/lib*.so -.include +.include