--- Makefile.orig 2020-03-24 10:54:06 UTC +++ Makefile @@ -54,7 +54,7 @@ CPPFLAGS_BENCH = $(CPPFLAGS_FAST) CFLAGS += -Wall -Wextra -Werror CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA) -CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA) +CFLAGS_FAST = $(CFLAGS) $(CFLAGS_FAST_EXTRA) CFLAGS_BENCH = $(CFLAGS_FAST) -Wno-unused-parameter CFLAGS_LIB = $(CFLAGS_FAST) -fPIC @@ -131,14 +131,14 @@ tags: http_parser.c http_parser.h test.c ctags $^ install: library - $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h - $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) + $(INSTALL) http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h + $(INSTALL) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME) ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT) install-strip: library - $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h - $(INSTALL) -D -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) + $(INSTALL) http_parser.h $(DESTDIR)$(INCLUDEDIR) + $(INSTALL) $(STRIP) $(LIBNAME) $(DESTDIR)$(LIBDIR) ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME) ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT)