--- Makefile.orig 2020-11-10 03:29:50 UTC +++ Makefile @@ -48,7 +48,7 @@ cc-option = $(shell if $(CC) $(1) -c -x c /dev/null -o 1>&2 2>/dev/null; then echo $(1); fi) override CFLAGS := \ - -O2 -fomit-frame-pointer -std=c99 -I. -Wall -Wundef \ + -std=c99 -I. -Wall -Wundef \ $(call cc-option,-Wpedantic) \ $(call cc-option,-Wdeclaration-after-statement) \ $(call cc-option,-Wmissing-prototypes) \ @@ -305,9 +305,9 @@ all:$(DEFAULT_TARGETS) install:all install -d $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCDIR) $(DESTDIR)$(BINDIR) install -m644 $(STATIC_LIB) $(DESTDIR)$(LIBDIR) - install -m755 $(SHARED_LIB) $(DESTDIR)$(LIBDIR) + install -s -m755 $(SHARED_LIB) $(DESTDIR)$(LIBDIR) install -m644 libdeflate.h $(DESTDIR)$(INCDIR) - install -m755 gzip$(PROG_SUFFIX) \ + install -s -m755 gzip$(PROG_SUFFIX) \ $(DESTDIR)$(BINDIR)/libdeflate-gzip$(PROG_SUFFIX) ln -f $(DESTDIR)$(BINDIR)/libdeflate-gzip$(PROG_SUFFIX) \ $(DESTDIR)$(BINDIR)/libdeflate-gunzip$(PROG_SUFFIX)