From d5eaf4106347983019f2da3a6f601bf766cf8ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20de=20Borja=20Lopez=20R=C3=ADo?= Date: Mon, 25 Nov 2013 09:43:43 +0100 Subject: [PATCH] Set proper jobs number and library paths before building in OpenBSD https://github.com/ariya/phantomjs/issues/10996 --- build.sh | 2 +- src/phantomjs.pro | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 188f4e75..05d4a2fd 100755 --- a/build.sh +++ b/build.sh @@ -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` diff --git a/src/phantomjs.pro b/src/phantomjs.pro index 0c8e7738..7cf77dbd 100644 --- a/src/phantomjs.pro +++ b/src/phantomjs.pro @@ -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 +} +