Compile library for all php

Hello, I must add (compile) a library that is not in any of the php options, how can I add the path so that the libraries match each version in lsws?..thank you.

It was simpler, you don’t need to compile another php, just use the ./configure with the right path (including the phpize).

example

./configure --with-php-config=/usr/local/lsws/lsphp73/bin/php-config

Anyway, thank you so much for responding.