View compiling-phantomjs-on-raspberry-pi.txt
There is an excellent article about compiling Phantomjs on Raspberry Pi 2:
But I would like to emphasize attention on one part which is RAM usage. RAM usage of cc1plus on this project is really huge. If you will
compile with `./ --jobs=N` where N is greater or equal 2 then you will propably run into issues:
g++ -c -Wall -Wextra -Wreturn-type -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -pipe -ffunction-sections -fdata-sections -fno-strict-aliasing -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -D_REENTRANT -MMD -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_NO_PRINTPREVIEWDIALOG -DBUILDING_QT__=1 -
View wsapi.fcgi
#!/usr/bin/env luajit
local jit = rawget(_G or _ENV, "jit")
--#if ENV ~= "PRODUCTION" then, true)
if jit.arch == "x64" then
package.cpath = package.cpath .. ";/usr/lib/x86_64-linux-gnu/lua/5.1/?.so"