Skip to content

Commit

Permalink
Merge pull request #307 from koreader/chrox-master
Browse files Browse the repository at this point in the history
reset local change before patching
  • Loading branch information
hwhw committed Mar 16, 2015
2 parents f9a1bf9 + 6cbf27d commit cf377f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ $(ZYRE_LIB): $(ZMQ_LIB) $(CZMQ_LIB)
cp -fL $(ZYRE_DIR)/build/$(if $(WIN32),bin,lib)/$(notdir $(ZYRE_LIB)) $@

$(TURBO_FFI_WRAP_LIB): $(SSL_LIB)
-cd $(TURBO_DIR) && patch -N -p1 < ../turbo.patch
# patch turbo to specify path of libssl and libcrypto
cd $(TURBO_DIR) && git checkout . && patch -N -p1 < ../turbo.patch
$(MAKE) -C $(TURBO_DIR) \
CC="$(CC) $(CFLAGS) -I$(CURDIR)/$(OPENSSL_DIR)/include" \
LDFLAGS="$(LDFLAGS) -lcrypto -lssl \
Expand All @@ -536,7 +537,8 @@ $(TURBO_FFI_WRAP_LIB): $(SSL_LIB)
cp -r $(TURBO_DIR)/turbovisor.lua $(OUTPUT_DIR)/common

$(LUA_SPORE_ROCK):
-cd $(LUA_SPORE_DIR) && patch -N -p1 < ../lua-Spore.patch
# patch lua-Spore to support async http request
cd $(LUA_SPORE_DIR) && git checkout . && patch -N -p1 < ../lua-Spore.patch
cd $(LUA_SPORE_DIR) && \
sed -i "s| 'luasocket|--'luasocket|g" $(LUA_SPORE_ROCKSPEC) \
&& luarocks make $(LUA_SPORE_ROCKSPEC) \
Expand Down

0 comments on commit cf377f8

Please sign in to comment.