[packages/php-xhp] -fpermissive is needed to compile it eith gcc 4.7 Release 10

baggins baggins at pld-linux.org
Wed Aug 8 12:07:08 CEST 2012


commit c33315ecac81fd91e656ea8e8da5cc15200af474
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Aug 8 12:06:47 2012 +0200

    -fpermissive is needed to compile it eith gcc 4.7
    Release 10

 php-xhp.spec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/php-xhp.spec b/php-xhp.spec
index 3bc1317..e3dfe59 100644
--- a/php-xhp.spec
+++ b/php-xhp.spec
@@ -13,7 +13,7 @@
 Summary:	Inline XML For PHP
 Name:		php-%{modname}
 Version:	1.3.9
-Release:	9
+Release:	10
 License:	PHP 3.01
 Group:		Development/Languages/PHP
 Source0:	http://github.com/facebook/xhp/tarball/%{version}/%{name}-%{version}.tar.gz
@@ -66,14 +66,14 @@ mv facebook-%{modname}-*/* .
 %{__make} -C xhp \
 	libdir=%{_libdir} \
 	CXX="%{__cxx}" \
-	OPTFLAGS="%{rpmcxxflags}"
+	OPTFLAGS="%{rpmcxxflags} -fpermissive"
 
 phpize
 %configure
 %{__make} \
 	CC="%{__cc}" \
 	CXX="%{__cxx}" \
-	CXXFLAGS="%{rpmcxxflags}"
+	CXXFLAGS="%{rpmcxxflags} -fpermissive"
 
 %if %{with tests}
 cat <<'EOF' > run-tests.sh


More information about the pld-cvs-commit mailing list