[PATCH] Build error is coming -lrt option need to require to build

Amit Khatri amit.khatri at samsung.com
Fri Apr 4 01:56:29 EDT 2014


Hi,

Please find the below patch. 
radius_example will throw error for old cc version.
cc --version
cc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

From 53ec445a7b61ae74939c5988420ad0845d3e0f64 Mon Sep 17 00:00:00 2001
From: Amit Khatri <amit.khatri at samsung.com>
Date: Wed, 2 Apr 2014 12:19:35 +0530
Subject: [PATCH] Build error is coming -lrt option need to require to build
 Signed-off-by: Amit Khatri <amit.khatri at samsung.com>

---
 radius_example/Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/radius_example/Makefile b/radius_example/Makefile
index 92e992c..883e2f2 100644
--- a/radius_example/Makefile
+++ b/radius_example/Makefile
@@ -21,6 +21,7 @@ CFLAGS += -I../src/utils
 LIBS = ../src/radius/libradius.a
 LIBS += ../src/crypto/libcrypto.a
 LIBS += ../src/utils/libutils.a
+LLIBS = -lrt
 
 ../src/utils/libutils.a:
 	$(MAKE) -C ../src/utils
@@ -36,7 +37,7 @@ LIBS += ../src/utils/libutils.a
 OBJS_ex = radius_example.o
 
 radius_example: $(OBJS_ex) $(LIBS)
-	$(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS)
+	$(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LLIBS)
 
 clean:
 	$(MAKE) -C ../src clean
-- 
1.7.9.5

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Build-error-is-coming.patch
Type: application/octet-stream
Size: 1026 bytes
Desc: not available
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140404/0f232305/attachment.obj>


More information about the HostAP mailing list