|
|
|
|
@ -94,21 +94,13 @@ libssl/openssl/libssl.a:
|
|
|
|
|
libssl: libssl/openssl/libssl.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GCC_VERSION := $(shell gcc -dumpversion)
|
|
|
|
|
MIN_VERSION := 4.9.0
|
|
|
|
|
REQUIRE_PATCH = false
|
|
|
|
|
ifeq ($(MIN_VERSION),$(lastword $(sort $(GCC_VERSION) $(MIN_VERSION))))
|
|
|
|
|
REQUIRE_PATCH = true
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
libhttpserver/libhttpserver/build/src/.libs/libhttpserver.a: libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/libmicrohttpd.a re2/re2/obj/libre2.a
|
|
|
|
|
cd libhttpserver && rm -rf libhttpserver-*/ || true
|
|
|
|
|
cd libhttpserver && tar -zxf libhttpserver-*.tar.gz
|
|
|
|
|
ifeq ($(REQUIRE_PATCH), true)
|
|
|
|
|
cd libhttpserver/libhttpserver && patch -p1 < ../noexcept.patch
|
|
|
|
|
cd libhttpserver/libhttpserver && patch -p1 < ../re2_regex.patch
|
|
|
|
|
cd libhttpserver/libhttpserver && patch -p1 < ../final_val_post_process.patch
|
|
|
|
|
endif
|
|
|
|
|
cd libhttpserver/libhttpserver && patch -p1 < ../empty_uri_log_crash.patch
|
|
|
|
|
ifeq ($(UNAME_S),FreeBSD)
|
|
|
|
|
sed -i -e 's/\/bin\/bash/\/usr\/local\/bin\/bash/' libhttpserver/libhttpserver/bootstrap
|
|
|
|
|
endif
|
|
|
|
|
|