how to cross-compile lighttpd
Added by maksym about 5 years ago
i try to compile lighttpd for arm platform.
i prefer not to use scons, but finally i'll go with any way which will allow to get working binary
with scons i tried to get sources and add recommended lines
env_options = {
"CC" : "arm-linux-gnueabihf-gcc",
"CXX" : "arm-linux-gnueabihf-g++",
"LD" : "arm-linux-gnueabihf-ld",
"AR" : "arm-linux-gnueabihf-ar",
"STRIP" : "arm-linux-gnueabihf-strip"
}
env = Environment(**env_options)
path = ['/home/maksym/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/']
env.Append( ENV = {'PATH' : path})
into the Sconstruct file, but
scons fullstatic use gcc instead of arm-linux-gnueabihf-gcc and i have no idea why and how to force scons to use toolchain
using make it seems no way to build static linked binary and after start on target platform lighttpd try to load some *.so files and stop.
is there like step-by-step guide how to cross-compile lighttpd?
Replies (2)
RE: how to cross-compile lighttpd - Added by gstrauss about 5 years ago
is there like step-by-step guide how to cross-compile lighttpd?
Please start with 'man scons'.
Then, you might find something useful if you try the "Search:" box in the upper right of this page
https://redmine.lighttpd.net/boards/3/topics/6626?r=6630#message-6630
RE: how to cross-compile lighttpd - Added by maksym about 5 years ago
Hi gstrauss,
thank you for your response.
Of course i started with mans https://scons.org/doc/2.4.1/HTML/scons-man.html
and i did not found there any significant information about cross-compilation.
then i used search button in the upper right corner of this page and also not found any working steps, that's why i asked here.
now i'm able cross-compile using make, scons as for me looks not working item. So we can close this topic.