bug 824742 - NSPR shouldn't require librt. Patch by Mike Hommey <mh@glandium.org>, r=ted NSPR_4_9_5_BETA2
authorted.mielczarek%gmail.com
Thu, 03 Jan 2013 14:49:26 +0000
changeset 4432 0aa876dbba108a16b51c4ba8c99fe55ec2068073
parent 4431 edf241e0804078d07db81e8ff4a1142ad69f7644
child 4433 c1d9877cfacfa13b0f3b952bfd04f21b42ccaf24
push idunknown
push userunknown
push dateunknown
reviewersted
bugs824742
bug 824742 - NSPR shouldn't require librt. Patch by Mike Hommey <mh@glandium.org>, r=ted
pr/src/Makefile.in
--- a/pr/src/Makefile.in
+++ b/pr/src/Makefile.in
@@ -113,29 +113,33 @@ ifeq ($(OS_ARCH),OSF1)
 ifeq ($(USE_PTHREADS), 1)
 OS_LIBS 	= -lpthread -lrt
 endif
 ifneq ($(OS_RELEASE),V2.0)
 OS_LIBS		+= -lc_r
 endif
 endif
 
-ifeq ($(OS_ARCH),Linux)
+# Linux, GNU/Hurd, and GNU/kFreeBSD systems
+ifneq (,$(filter Linux GNU%,$(OS_ARCH)))
 ifeq ($(USE_PTHREADS), 1)
 ifeq ($(OS_TARGET),Android)
 # Android has no libpthread.so in NDK
 OS_LIBS		= -ldl
 else
 OS_LIBS		= -lpthread -ldl
 endif
 else
 OS_LIBS		= -ldl
 endif
+ifneq ($(OS_TARGET),Android)
+# Android has no librt - realtime functions are in libc
 OS_LIBS		+= -lrt
 endif
+endif
 
 ifeq ($(OS_ARCH),HP-UX)
 ifeq ($(USE_PTHREADS), 1)
 ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))
 OS_LIBS 	= -ldce
 else
 OS_LIBS 	= -lpthread -lrt
 endif