blob: b9b3df007be34f2db8b11afeb767cf9cc1e12ba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From 858ab85c1ccca9e25a9c8580b5a819693dec7f99 Mon Sep 17 00:00:00 2001
From: kXuan <kxuanobj@gmail.com>
Date: Wed, 6 Sep 2023 11:52:53 +0800
Subject: [PATCH 1/2] fix build error
Signed-off-by: kXuan <kxuanobj@gmail.com>
---
javascript/net/grpc/web/generator/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/javascript/net/grpc/web/generator/Makefile b/javascript/net/grpc/web/generator/Makefile
index 44b0196..c57de61 100644
--- a/javascript/net/grpc/web/generator/Makefile
+++ b/javascript/net/grpc/web/generator/Makefile
@@ -14,8 +14,8 @@
CXX ?= g++
CPPFLAGS += -I/usr/local/include -pthread
-CXXFLAGS += -std=c++11
-LDFLAGS += -L/usr/local/lib -lprotoc -lprotobuf -lpthread -ldl
+CXXFLAGS += -std=c++17
+LDFLAGS += -L/usr/local/lib -lprotoc $(shell pkg-config --libs protobuf) -lpthread -ldl
PREFIX ?= /usr/local
MIN_MACOS_VERSION := 10.7 # Supports OS X Lion
STATIC ?= yes
@@ -32,7 +32,7 @@ endif
all: protoc-gen-grpc-web
protoc-gen-grpc-web: grpc_generator.o
- $(CXX) $^ $(LDFLAGS) -o $@
+ $(CXX) $^ -o $@ $(LDFLAGS)
install: protoc-gen-grpc-web
mkdir -p $(PREFIX)/bin
--
2.49.0
|