python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / protoc-gen-grpc-web / optional-static.patch
bloba7ca112749c1f5eec6daed9b09b45b8140cfeb49
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -18,12 +18,15 @@ CXXFLAGS += -std=c++11
4 LDFLAGS += -L/usr/local/lib -lprotoc -lprotobuf -lpthread -ldl
5 PREFIX ?= /usr/local
6 MIN_MACOS_VERSION := 10.7 # Supports OS X Lion
7 +STATIC ?= yes
9 UNAME_S := $(shell uname -s)
10 ifeq ($(UNAME_S),Darwin)
11 CXXFLAGS += -stdlib=libc++ -mmacosx-version-min=$(MIN_MACOS_VERSION)
12 else ifeq ($(UNAME_S),Linux)
13 - LDFLAGS += -static
14 + ifeq ($(STATIC),yes)
15 + LDFLAGS += -static
16 + endif
17 endif
19 all: protoc-gen-grpc-web