aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--templates/Makefile.template2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fab4e6aa6a..7dc1451000 100644
--- a/Makefile
+++ b/Makefile
@@ -342,7 +342,7 @@ PC_CFLAGS = -pthread
PC_REQUIRES_PRIVATE =
PC_LIBS_PRIVATE = -lpthread
PC_LIB = -lgpr
-ifeq ($(SYSTEM),Darwin)
+ifneq ($(SYSTEM),Darwin)
PC_LIBS_PRIVATE += -lrt
endif
GPR_PC_FILE := $(PC_TEMPLATE)
diff --git a/templates/Makefile.template b/templates/Makefile.template
index cde6ad978d..c6cedc9c7f 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -367,7 +367,7 @@ PC_CFLAGS = -pthread
PC_REQUIRES_PRIVATE =
PC_LIBS_PRIVATE = -lpthread
PC_LIB = -lgpr
-ifeq ($(SYSTEM),Darwin)
+ifneq ($(SYSTEM),Darwin)
PC_LIBS_PRIVATE += -lrt
endif
GPR_PC_FILE := $(PC_TEMPLATE)