Commit 2e7982ce authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 7d1d2e9f
...@@ -51,7 +51,9 @@ PROTO_OBJS := $(patsubst %.c,%.o,$(PROTO_SRCS)) ...@@ -51,7 +51,9 @@ PROTO_OBJS := $(patsubst %.c,%.o,$(PROTO_SRCS))
%.pb-c.c %.pb-c.h: %.proto %.pb-c.c %.pb-c.h: %.proto
$(E) " PROTOBUF "$@ $(E) " PROTOBUF "$@
$(Q) protoc-c --c_out=./ $< $(Q) protoc-c --c_out=./ $<
ifeq ($(ARCH),arm)
$(Q) sed -i 's/4294967295/0xFFFFFFFF/g' $@ $(patsubst %c,%h,$@) $(Q) sed -i 's/4294967295/0xFFFFFFFF/g' $@ $(patsubst %c,%h,$@)
endif
%.o: %.c %.h %.o: %.c %.h
$(E) " CC "$@ $(E) " CC "$@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment