diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-15 12:02:28 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-15 12:02:28 +0100 |
commit | 1f87f492ec1680ad3144b84219c27d2127459b50 (patch) | |
tree | e16d176108ce2561bc351dc3d236ecd1aa01a472 | |
parent | c67d3d4f38906b93faaec88bfb5cc84f4673e13c (diff) | |
download | cv-1f87f492ec1680ad3144b84219c27d2127459b50.tar.gz cv-1f87f492ec1680ad3144b84219c27d2127459b50.tar.bz2 cv-1f87f492ec1680ad3144b84219c27d2127459b50.zip |
Makefile: Pass in 2 threads if /proc/cpuinfo can not be read
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ CC = gcc CFLAGS = -ggdb -std=c99 -pedantic -Wall \ $(shell pkg-config --cflags gdk-pixbuf-2.0 glib-2.0 gthread-2.0) \ - -DN_THREADS=$(shell grep -c ^processor /proc/cpuinfo) + -DN_THREADS=$(shell grep -c ^processor /proc/cpuinfo || echo 2) LDFLAGS = -lm \ $(shell pkg-config --libs gdk-pixbuf-2.0 glib-2.0 gthread-2.0) |