Compile port and link shared object from non default directory

Hi,
this is the scenario:

Freebsd 14 with openssl111 installed in /usr/local/etc/openssl111.

I want to compile curl 7.87 using libcrypto and other openssl lib located into /usr/local/etc/openssl111/lib.

When i do "make install", curl search for libcrypto and others into default location and start building openssl111 for these libs.

Someone can help me?

Thank you
 
I need to recompile also php74 with openssl111 because i have an old web app that use it and need to make curl request..
 
Back
Top