From cd8a7eb53ba41c5463155ac6b183aa823eef0d38 Mon Sep 17 00:00:00 2001 From: zer0 Date: Sun, 9 May 2010 16:23:28 +0200 Subject: [PATCH] use -pthread flags --- config/generate_aversive_config | 3 ++- mk/aversive_project.mk | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/generate_aversive_config b/config/generate_aversive_config index c78c127..df7d569 100755 --- a/config/generate_aversive_config +++ b/config/generate_aversive_config @@ -128,7 +128,8 @@ fi if grep "CONFIG_MODULE_HOSTSIM=y" $1 > /dev/null 2> /dev/null then - echo "PTHREAD_LDFLAGS = -lpthread" >> $2 + echo "PTHREAD_CFLAGS = -pthread" >> $2 + echo "PTHREAD_LDFLAGS = -pthread" >> $2 fi diff --git a/mk/aversive_project.mk b/mk/aversive_project.mk index 8e56130..7a21d73 100644 --- a/mk/aversive_project.mk +++ b/mk/aversive_project.mk @@ -69,7 +69,8 @@ ifeq ($(HOST),avr) # -ahlms: create assembler listing ALL_CFLAGS += -Wa,-adhlns=$(addprefix compiler_files/,$(<:.c=.$(HOST).lst)) else -ALL_CFLAGS += +ALL_CFLAGS += $(PTHREAD_CFLAGS) + endif -- 2.39.5