Fix radius_example build

radius_example needs the -lrt option to build with some glibc versions.

Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
This commit is contained in:
Amit Khatri 2014-04-02 12:19:35 +05:30 committed by Jouni Malinen
parent 75aea3e704
commit 6a6afc02c0

View File

@ -21,6 +21,7 @@ CFLAGS += -I../src/utils
LIBS = ../src/radius/libradius.a LIBS = ../src/radius/libradius.a
LIBS += ../src/crypto/libcrypto.a LIBS += ../src/crypto/libcrypto.a
LIBS += ../src/utils/libutils.a LIBS += ../src/utils/libutils.a
LLIBS = -lrt
../src/utils/libutils.a: ../src/utils/libutils.a:
$(MAKE) -C ../src/utils $(MAKE) -C ../src/utils
@ -36,7 +37,7 @@ LIBS += ../src/utils/libutils.a
OBJS_ex = radius_example.o OBJS_ex = radius_example.o
radius_example: $(OBJS_ex) $(LIBS) radius_example: $(OBJS_ex) $(LIBS)
$(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LLIBS)
clean: clean:
$(MAKE) -C ../src clean $(MAKE) -C ../src clean