Backport "Fix implicit declaration error in zlib + macOS #24979"

pull/25133/head
Masaki Hara 4 years ago committed by Alexander Polcyn
parent a9bf88bae3
commit 58ef4d7135
  1. 1
      Makefile
  2. 1
      build_handwritten.yaml

@ -2455,6 +2455,7 @@ PUBLIC_HEADERS_C += \
LIBZ_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBZ_SRC))))
$(LIBZ_OBJS): CFLAGS += -fvisibility=hidden
$(LIBZ_OBJS): CPPFLAGS += -DHAVE_UNISTD_H
$(LIBDIR)/$(CONFIG)/libz.a: $(LIBZ_OBJS)
$(E) "[AR] Creating $@"

@ -216,6 +216,7 @@ defaults:
LDFLAGS: -g
zlib:
CFLAGS: -fvisibility=hidden
CPPFLAGS: -DHAVE_UNISTD_H
php_config_m4:
deps:
- grpc

Loading…
Cancel
Save