only use librt on Linux; OS X doesn't have or need it

This commit is contained in:
Joel Dice 2013-07-07 11:35:20 -06:00
parent 82577d742f
commit 3058e4254d

View File

@ -215,9 +215,12 @@ ifneq ($(android),)
$(android)/openssl-upstream/libssl.a \
$(android)/openssl-upstream/libcrypto.a \
$(platform-lflags) \
-lrt \
-lstdc++
ifeq ($(platform),linux)
classpath-lflags += -lrt
endif
classpath-objects = \
$(call cpp-objects,$(luni-cpps),$(luni-native),$(build)) \
$(call cpp-objects,$(crypto-cpps),$(crypto-native),$(build)) \