]> mj.ucw.cz Git - libucw.git/blobdiff - lib/Makefile
Fixed a bug.
[libucw.git] / lib / Makefile
index 814ec251f821949b54f03925aea0fe3f2ce40fb2..fe3d0ff02062d2521119b96b01c4214a073ec2c8 100644 (file)
@@ -2,6 +2,7 @@
 
 DIRS+=lib
 CONFIGS+=library
+LIBUCW=$(o)/lib/libucw.pc
 
 ifdef CONFIG_UCW_DBTOOL
 PROGS+=$(o)/lib/db-tool
@@ -63,7 +64,6 @@ LIBUCW_INCLUDES= \
 
 ifdef CONFIG_UCW_THREADS
 # Some modules require threading
-LIBS+=-lpthread
 LIBUCW_MODS+=threads-conf workqueue asio fb-direct
 LIBUCW_INCLUDES+=workqueue.h semaphore.h asio.h
 endif
@@ -78,7 +78,6 @@ endif
 
 include $(s)/lib/sorter/Makefile
 
-LIBUCW=$(o)/lib/libucw.pc
 LIBUCW_MOD_PATHS=$(addprefix $(o)/lib/,$(LIBUCW_MODS))
 
 $(o)/lib/libucw.a: $(addsuffix .o,$(LIBUCW_MOD_PATHS))