[packages/php/dev-7.3] - fix build on i686

baggins baggins at pld-linux.org
Wed Oct 24 09:41:50 CEST 2018


commit 1ec395c21a5de42f3f6f9a43c8ec1080ff4c8aab
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Oct 24 07:41:38 2018 +0000

    - fix build on i686

 php.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/php.spec b/php.spec
index cac2f01..26e69c1 100644
--- a/php.spec
+++ b/php.spec
@@ -2240,6 +2240,11 @@ export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
 CXXFLAGS="%{rpmcxxflags} -std=c++11"
 %endif
 
+# This should be detected by configure and set there,
+# but looks like the build system is hosed on 7.3
+export CXXFLAGS="%{rpmcxxflags} -fPIC -DPIC"
+export CFLAGS="%{rpmcflags} -fPIC -DPIC"
+
 sapis="
 cli
 %if %{with cgi}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/1ec395c21a5de42f3f6f9a43c8ec1080ff4c8aab



More information about the pld-cvs-commit mailing list