]> git.droids-corp.org - aversive.git/commitdiff
use -pthread flags
authorzer0 <zer0@carbon.local>
Sun, 9 May 2010 14:23:28 +0000 (16:23 +0200)
committerzer0 <zer0@carbon.local>
Sun, 9 May 2010 14:23:28 +0000 (16:23 +0200)
config/generate_aversive_config
mk/aversive_project.mk

index c78c1272bb6ecb3efca5b83e382ae0b65aa06f0c..df7d569ff85b74664903f4f982e15b24f88fc685 100755 (executable)
@@ -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
 
 
index 8e56130cf8fbf664797d5dacfbde7b51d20f8c5f..7a21d73874e93d1fbafb5b3ce86ca9446cfb66b6 100644 (file)
@@ -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