From 3058e4254d62bfff23d365ac2e5c1ab1a86f25a7 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 7 Jul 2013 11:35:20 -0600 Subject: [PATCH] only use librt on Linux; OS X doesn't have or need it --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) \