Bug #72702 [Opn->Fbk]: PHP7: Build with LTO / ld-gold broken

From: Date: Sun, 31 Jul 2016 10:44:53 +0000
Subject: Bug #72702 [Opn->Fbk]: PHP7: Build with LTO / ld-gold broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202761@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72702&edit=1 ID: 72702 Updated by: nikic@php.net Reported by: spam2 at rhsoft dot net Summary: PHP7: Build with LTO / ld-gold broken -Status: Open +Status: Feedback Type: Bug Package: Compile Failure Operating System: Fedora 24 / GCC6 PHP Version: 7.0.9 Block user comment: N Private report: N New Comment: What is the build error you receive? Previous Comments: ------------------------------------------------------------------------ [2016-07-28 20:16:20] spam2 at rhsoft dot net Description: ------------ you can't just bild PHP7 with Link-Time-Optimization / Gold-Linker _______________________________________ PHP 5.6 export CFLAGS="%{optflags} -O3 -fPIC -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops -flto -fno-fat-lto-objects -fuse-ld=gold -fuse-linker-plugin" export CXXFLAGS="$CFLAGS" export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold -pie %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops -flto -fno-fat-lto-objects -fuse-ld=gold -fuse-linker-plugin" export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops -flto -fno-fat-lto-objects-fuse-ld=gold -fuse-linker-plugin" _______________________________________ PHP 7.0.9: [root@testserver:~]$ cat /rpmbuild/SPECS/php.spec | grep FLAGS export CFLAGS="%{optflags} -O3 -fPIC -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops" export CXXFLAGS="$CFLAGS" export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops" export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72702&edit=1

« previous php.bugs (#202761) next »