Merge pull request #149 from liuqun/dtls-fixup-makefile-pthread
Fix up build error on dtls/server-dtls-threadedpull/155/head
commit
c9cf2492d3
|
@ -28,6 +28,10 @@ all: $(TARGETS)
|
|||
debug: CFLAGS+=$(DEBUG_FLAGS)
|
||||
debug: all
|
||||
|
||||
# add the -pthread flag and -lpthread lib to any threaded examples
|
||||
%-threaded: CFLAGS+=-pthread
|
||||
%-threaded: LIBS+=-lpthread
|
||||
|
||||
# build template
|
||||
%: %.c
|
||||
$(CC) -o $@ $< $(CFLAGS) $(LIBS)
|
||||
|
|
Loading…
Reference in New Issue