Set proper jobs number and library paths before building in OpenBSD

https://github.com/ariya/phantomjs/issues/10996
1.x
Francisco de Borja Lopez Río 2013-11-25 09:43:43 +01:00 committed by Ariya Hidayat
parent 8f8de58752
commit d5eaf41063
2 changed files with 7 additions and 2 deletions

View File

@ -19,7 +19,7 @@ elif [[ $OSTYPE = darwin* ]]; then
# We only support modern Mac machines, they are at least using
# hyperthreaded dual-core CPU.
COMPILE_JOBS=4
elif [[ $OSTYPE == freebsd* ]]; then
elif [[ $OSTYPE == freebsd* ]] || [[ $OSTYPE == openbsd* ]]; then
COMPILE_JOBS=`sysctl -n hw.ncpu`
else
CPU_CORES=`grep -c ^processor /proc/cpuinfo`

View File

@ -60,7 +60,7 @@ include(mongoose/mongoose.pri)
include(linenoise/linenoise.pri)
include(qcommandline/qcommandline.pri)
linux*|mac {
linux*|mac|openbsd* {
INCLUDEPATH += breakpad/src
SOURCES += breakpad/src/client/minidump_file_writer.cc \
@ -131,3 +131,8 @@ win32-msvc* {
qico
}
}
openbsd* {
LIBS += -L/usr/X11R6/lib
}