12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- $OpenBSD: patch-Makefile_in,v 1.5 2017/04/28 20:40:04 juanfra Exp $
- --- Makefile.in.orig Tue Feb 7 16:16:59 2017
- +++ Makefile.in Fri Apr 28 22:23:00 2017
- @@ -24,14 +24,14 @@ all : $(progname_static) $(progname_shared)
- lib$(libname).a : lzlib.o
- $(AR) -rcs $@ $<
-
- -lib$(libname).so.$(pkgversion) : lzlib_sh.o
- - $(CC) $(LDFLAGS) $(CFLAGS) -fpic -fPIC -shared -Wl,--soname=lib$(libname).so.$(soversion) -o $@ $<
- +lib$(libname).so.$(LIBlz_VERSION) : lzlib_sh.o
- + $(CC) $(LDFLAGS) $(CFLAGS) -fPIC -shared -o $@ $<
-
- $(progname) : $(objs) lib$(libname).a
- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(objs) lib$(libname).a
-
- -$(progname)_shared : $(objs) lib$(libname).so.$(pkgversion)
- - $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(objs) lib$(libname).so.$(pkgversion)
- +$(progname)_shared : $(objs) lib$(libname).so.$(LIBlz_VERSION)
- + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(objs) lib$(libname).so.$(LIBlz_VERSION)
-
- bbexample : bbexample.o lib$(libname).a
- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ bbexample.o lib$(libname).a
- @@ -43,7 +43,7 @@ main.o : main.c
- $(CC) $(CPPFLAGS) $(CFLAGS) -DPROGVERSION=\"$(pkgversion)\" -c -o $@ $<
-
- lzlib_sh.o : lzlib.c
- - $(CC) $(CPPFLAGS) $(CFLAGS) -fpic -fPIC -c -o $@ $<
- + $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c -o $@ $<
-
- %.o : %.c
- $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
- @@ -91,15 +91,13 @@ install-bin : all
- $(INSTALL_DATA) ./lib$(libname).a "$(DESTDIR)$(libdir)/lib$(libname).a" ; \
- fi
- if [ -n "$(progname_shared)" ] ; then \
- - $(INSTALL_PROGRAM) ./lib$(libname).so.$(pkgversion) "$(DESTDIR)$(libdir)/lib$(libname).so.$(pkgversion)" ; \
- + $(INSTALL_PROGRAM) ./lib$(libname).so.$(LIBlz_VERSION) "$(DESTDIR)$(libdir)/lib$(libname).so.$(LIBlz_VERSION)" ; \
- if [ -e "$(DESTDIR)$(libdir)/lib$(libname).so.$(soversion)" ] ; then \
- run_ldconfig=no ; \
- else run_ldconfig=yes ; \
- fi ; \
- rm -f "$(DESTDIR)$(libdir)/lib$(libname).so" ; \
- rm -f "$(DESTDIR)$(libdir)/lib$(libname).so.$(soversion)" ; \
- - cd "$(DESTDIR)$(libdir)" && ln -s lib$(libname).so.$(pkgversion) lib$(libname).so ; \
- - cd "$(DESTDIR)$(libdir)" && ln -s lib$(libname).so.$(pkgversion) lib$(libname).so.$(soversion) ; \
- if [ "${disable_ldconfig}" != yes ] && [ $${run_ldconfig} = yes ] && \
- [ -x "$(LDCONFIG)" ] ; then "$(LDCONFIG)" -n "$(DESTDIR)$(libdir)" || true ; fi ; \
- fi
- @@ -140,7 +138,7 @@ uninstall-bin :
- -rm -f "$(DESTDIR)$(libdir)/lib$(libname).a"
- -rm -f "$(DESTDIR)$(libdir)/lib$(libname).so"
- -rm -f "$(DESTDIR)$(libdir)/lib$(libname).so.$(soversion)"
- - -rm -f "$(DESTDIR)$(libdir)/lib$(libname).so.$(pkgversion)"
- + -rm -f "$(DESTDIR)$(libdir)/lib$(libname).so.$(LIBlz_VERSION)"
-
- uninstall-info :
- -if $(CAN_RUN_INSTALLINFO) ; then \
|