From 1f87f492ec1680ad3144b84219c27d2127459b50 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 15 Mar 2012 12:02:28 +0100 Subject: Makefile: Pass in 2 threads if /proc/cpuinfo can not be read --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1f8e061..3ebb15c 100644 --- a/Makefile +++ b/Makefile @@ -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) -- cgit