[openssl] add missin -lpthread to the util - build bots spotted this
[openwrt.git] / package / openssl / Makefile
index d95783a..123f393 100644 (file)
@@ -58,7 +58,7 @@ define Package/openssl-util
   $(call Package/openssl/Default)
   SECTION:=utils
   CATEGORY:=Utilities
-  DEPENDS:=+libopenssl
+  DEPENDS:=+libopenssl +libpthread
   TITLE+= (utility)
 endef
 
@@ -105,7 +105,7 @@ define Build/Configure
        )
 endef
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE
 
 define Build/Compile
        # XXX: OpenSSL "make depend" will look for installed headers before its own,