diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-09 08:26:27 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-09 08:27:47 +0100 |
commit | 889a82be015488089f6e0de3a2d5f745ba756945 (patch) | |
tree | 289a4759de8be0a806fceb8d093baf84a6d61d31 | |
parent | 676ff58bc32134fd26b4c59629f3bcdad1696a45 (diff) |
build: add -pthread to default compiler and linker flags
Suggested by @kneo and @stefan-langenmaier at about the same time.
-rw-r--r-- | src/Makefile.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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 \ |