Possible to recompile/build PHP with specific compile option
ryandesign at macports.org
Sat Nov 5 20:44:18 PDT 2011
On Nov 5, 2011, at 19:02, Jeremy Lavergne wrote:
>> My question is, is it possible to use PHP via Macports but with the "--enable-fd-setsize=2048" option?
> You ought to be able to add this to your Portfile to add that configuration it:
> configure.args-append --enable-fd-setsize=2048
> Once it's there, uninstall and reinstall but be sure to force macports to build from source, like so:
> port -s install php5
> You can similarly use configure.args-delete to remove arguments.
This implies that you would maintain your own local copy of the php5 portfile, which you may not want to take on the responsibility of doing. But there isn't a supported way to just add arbitrary configure arguments to ports at the command line.
More information about the macports-users