Build Openlitespeed on Alpine Linux

#1
Good day, friends!
Since version 1.7.4 Openlitespeed supports Alpine Linux.
But if version 1.7.12 was built from sources with a binary file /usr/local/lsws/bin/openlitespeed size of 26 megabytes, then version 1.7.14 is built with a binary file of 45 megabytes!
Moreover, on centos and debian, when installing from the repositories, the binary file is only 8 megabytes.
Why is there such a big difference in file sizes?
 
#3
Thank you for the clarification!
Can you tell me how you can disable unnecessary modules and debugging during compilation?
Something like this?
./build.sh --with-brotli=no --enable-recaptcha=no or I need to edit file configure?
 

Cold-Egg

Administrator
#4
You cannot control modules like that, need to change CMakeList.txt.
And debug symbol can be removed with strip openlitespeed .
 
#5
How to use strip openlitespeed ?
So far, good results have been obtained by replacing the string
cmake -DCMAKE_BUILD_TYPE=$BUILD ..
with
cmake -DCMAKE_BUILD_TYPE=Release ..
Instead of 45 megabytes, the binary file turned out to be 24 megabytes.
 
#6
After all the experiments, I accidentally found a 8585 kb openlitespeed file in the admin/fcgi-bin folder.
Where he came from there is unknown. I changed the file /usr/local/lsws/bin/openlitespeed to it. Everything works!
Cold-Egg, thanks for your support!
 
Top