From 1d66193a3b7812b2d5fd38f36cbd3829d1d8d963 Mon Sep 17 00:00:00 2001
From: blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Wed, 3 Apr 2013 10:01:10 +0000
Subject: [procd] fix eglibc compile

add librt dependency/link flag to procd when using eglibc thanks to jow for the help

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36188 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 package/procd/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'package/procd')

diff --git a/package/procd/Makefile b/package/procd/Makefile
index 762fb5f18..53c102a7c 100644
--- a/package/procd/Makefile
+++ b/package/procd/Makefile
@@ -21,10 +21,12 @@ PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/cmake.mk
 
+TARGET_LDFLAGS += $(if $(CONFIG_USE_EGLIBC),-lrt)
+
 define Package/procd
   SECTION:=base
   CATEGORY:=Base system
-  DEPENDS:=+ubusd +ubus +libjson-script
+  DEPENDS:=+ubusd +ubus +libjson-script +USE_EGLIBC:librt
   TITLE:=OpenWrt system process manager
 endef
 
-- 
cgit v1.2.3