2
0
Эх сурвалжийг харах

- automatically links against libpthread if USE_PTHREAD_MUTEX is forced

Andrei Pelinescu-Onciul 19 жил өмнө
parent
commit
d5b4d88250
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      Makefile.defs

+ 3 - 0
Makefile.defs

@@ -1219,6 +1219,9 @@ ifeq ($(OS), linux)
 		ifneq (,$(findstring -DUSE_POSIX_SEM, $(DEFS)))
 			LIBS+=-lpthread
 		endif
+		ifneq (,$(findstring -DUSE_PTHREAD_MUTEX, $(DEFS)))
+			LIBS+=-lpthread
+		endif
 	endif
 	# check for >= 2.5.44
 	ifeq ($(shell [ $(OSREL_N) -ge 2005044 ] && echo has_epoll), has_epoll)