From 2e7982ce3f2bdd8bec3f124eeca44a812c15af8c Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 24 Jan 2013 01:44:38 +0400 Subject: [PATCH] make: protobuf -- Mangle integer constant on ARM only It's known to work on x86-64 so make the build procedure a bit faster here. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- protobuf/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protobuf/Makefile b/protobuf/Makefile index 970477cb9..dfddf1c8f 100644 --- a/protobuf/Makefile +++ b/protobuf/Makefile @@ -51,7 +51,9 @@ PROTO_OBJS := $(patsubst %.c,%.o,$(PROTO_SRCS)) %.pb-c.c %.pb-c.h: %.proto $(E) " PROTOBUF "$@ $(Q) protoc-c --c_out=./ $< +ifeq ($(ARCH),arm) $(Q) sed -i 's/4294967295/0xFFFFFFFF/g' $@ $(patsubst %c,%h,$@) +endif %.o: %.c %.h $(E) " CC "$@