protobuf: install prefixed protoc tool

pull/893/head
Boris Nagaev 9 years ago
parent c53691cff6
commit ca9f1fa480

@ -22,13 +22,13 @@ define $(PKG)_BUILD
cd '$(1)' && ./configure \
--disable-shared
$(MAKE) -C '$(1)' -j '$(JOBS)'
cp '$(1)/src/protoc' '$(1)/src/protoc_host'
cp '$(1)/src/protoc' '$(PREFIX)/bin/$(TARGET)-protoc'
$(MAKE) -C '$(1)' -j 1 distclean
# Second step: Build for target system.
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--with-zlib \
--with-protoc=src/protoc_host
--with-protoc='$(PREFIX)/bin/$(TARGET)-protoc'
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install

Loading…
Cancel
Save