diff --git a/makefile b/makefile index 736ec89308..72170bfd35 100755 --- a/makefile +++ b/makefile @@ -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)) \