tests: Fix unit test linking after reltime changes

librt needs to be linked in with older glibc versions.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-01-03 17:41:16 +02:00
parent d7a99700de
commit 6be79541ad

View file

@ -29,6 +29,9 @@ DLIBS = ../src/crypto/libcrypto.a \
LIBS = $(SLIBS) $(DLIBS) LIBS = $(SLIBS) $(DLIBS)
LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS) LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS)
# glibc < 2.17 needs -lrt for clock_gettime()
LLIBS += -lrt
../src/utils/libutils.a: ../src/utils/libutils.a:
$(MAKE) -C ../src/utils $(MAKE) -C ../src/utils
@ -43,43 +46,43 @@ test-aes: test-aes.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS) $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-asn1: test-asn1.o $(LIBS) test-asn1: test-asn1.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-base64: test-base64.o $(LIBS) test-base64: test-base64.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-bitfield: test-bitfield.o $(LIBS) test-bitfield: test-bitfield.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-https: test-https.o $(LIBS) test-https: test-https.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $< $(LLIBS) $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
test-list: test-list.o $(LIBS) test-list: test-list.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-md4: test-md4.o $(LIBS) test-md4: test-md4.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-md5: test-md5.o $(LIBS) test-md5: test-md5.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LIBS) $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-milenage: test-milenage.o $(LIBS) test-milenage: test-milenage.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-ms_funcs: test-ms_funcs.o $(LIBS) test-ms_funcs: test-ms_funcs.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-printf: test-printf.o $(LIBS) test-printf: test-printf.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-rc4: test-rc4.o $(LIBS) test-rc4: test-rc4.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-sha1: test-sha1.o $(LIBS) test-sha1: test-sha1.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LIBS) $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-sha256: test-sha256.o $(LIBS) test-sha256: test-sha256.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $^ $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
test-x509: test-x509.o $(LIBS) test-x509: test-x509.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $< $(LLIBS) $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)