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 +} +