about summary refs log tree commit diff
path: root/pkgs/servers/certificate-transparency/protobuf-include-from-env.patch
blob: a1f9a1849b6374e8c026a0b85ed0f5a3627f7273 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Get protobuf include path from environment

--- a/python/Makefile
+++ b/python/Makefile
@@ -5,7 +5,7 @@ all: ct/proto/client_pb2.py ct/proto/ct_pb2.py ct/proto/tls_options_pb2.py \
 	ct/proto/test_message_pb2.py ct/proto/certificate_pb2.py
 
 ct/proto/%_pb2.py: ct/proto/%.proto
-	$(PROTOC) $^ -I/usr/include/ -I/usr/local/include -I$(INSTALL_DIR)/include -I. --python_out=.
+	$(PROTOC) $^ $(protocFlags) -I. --python_out=.
 
 ct/proto/ct_pb2.py: ../proto/ct.proto
 	$(PROTOC) --python_out=ct/proto -I../proto ../proto/ct.proto