Build error "recompile with -fPIC" in PHP 8.0.0

From: Date: Sun, 29 Nov 2020 17:31:02 +0000
Subject: Build error "recompile with -fPIC" in PHP 8.0.0
Groups: php.general 
Request: Send a blank email to php-general+get-327378@lists.php.net to get a copy of this message
Hello, list. I can't compile PHP 8.0.0 because of this error. The same thing happens to 7.4.13, but that can be solved by setting CFLAGS=-fPIC in the environment, and then I succeed building 7.4.13. But with 8.0.0, it *always* ends in the error, no matter if I set the variable. I tried several combinations in my environment of build-related env vars, configure option --with-pic, etc. but can't make it work. This seems to happen in the libtool command in the Makefile. Anyone aware of this issue? Any tips for solving it? Error: /usr/bin/ld: read-only segment has dynamic IFUNC relocations; recompile with -fPIC /usr/bin/ld: failed to set dynamic section sizes: Bad value collect2: error: ld returned 1 exit status Makefile:134: recipe for target 'libphp.la' failed make: *** [libphp.la] Error 1

« previous php.general (#327378) next »