From 889a82be015488089f6e0de3a2d5f745ba756945 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sun, 9 Mar 2014 08:26:27 +0100 Subject: build: add -pthread to default compiler and linker flags Suggested by @kneo and @stefan-langenmaier at about the same time. --- src/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile.inc b/src/Makefile.inc index 951beea..5f0d1ed 100644 --- a/src/Makefile.inc +++ b/src/Makefile.inc @@ -10,7 +10,9 @@ LD = $(GCCPREFIX)ld AR = $(GCCPREFIX)ar GCC_CFLAGS = -D_POSIX_C_SOURCE=200809 -D_GNU_SOURCE -COMMON_FLAGS = -O2 -g3 -ggdb3 -Wall -Wmissing-prototypes -DGCABI_${GCABI} $(GCC_CFLAGS) -I$(TOP)/lib -I$(TOP)/include_$(GCABI) -fPIC \ +COMMON_FLAGS = -O2 -g3 -ggdb3 -Wall -Wmissing-prototypes \ + -DGCABI_${GCABI} $(GCC_CFLAGS) -I$(TOP)/lib -I$(TOP)/include_$(GCABI) \ + -fPIC -pthread \ -I$(TOP)/minigallium/include -I$(TOP)/minigallium/auxiliary -I$(TOP) \ -fdiagnostics-show-option \ -Werror=missing-prototypes -Werror=missing-declarations -Werror=implicit-function-declaration \ -- cgit