From 3adab74c629b8f56f0c04f5e0cc234f1cf3fcb06 Mon Sep 17 00:00:00 2001
From: "Nicolas \"Pixel\" Noble" <pixel@nobis-crew.org>
Date: Tue, 2 Jun 2015 00:33:06 +0200
Subject: [PATCH] Avoid polluting our compilation with previously installed
 grpc.

---
 Makefile                    | 2 ++
 templates/Makefile.template | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index dfdce1d83d..644691969e 100644
--- a/Makefile
+++ b/Makefile
@@ -262,6 +262,8 @@ LDFLAGS += -fPIC
 endif
 
 INCLUDES = . include $(GENDIR)
+LDFLAGS += -Llibs/$(CONFIG)
+
 ifeq ($(SYSTEM),Darwin)
 ifneq ($(wildcard /usr/local/ssl/include),)
 INCLUDES += /usr/local/ssl/include
diff --git a/templates/Makefile.template b/templates/Makefile.template
index bc8f1bb1d0..1422150d0d 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -276,6 +276,8 @@ LDFLAGS += -fPIC
 endif
 
 INCLUDES = . include $(GENDIR)
+LDFLAGS += -Llibs/$(CONFIG)
+
 ifeq ($(SYSTEM),Darwin)
 ifneq ($(wildcard /usr/local/ssl/include),)
 INCLUDES += /usr/local/ssl/include
-- 
GitLab