cfitsio-zlib.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. diff -ur cfitsio-3.47/Makefile.in cfitsio-3.47.zlib/Makefile.in
  2. --- cfitsio-3.47/Makefile.in 2019-05-08 17:34:50.000000000 +0200
  3. +++ cfitsio-3.47.zlib/Makefile.in 2019-08-01 15:52:57.829760351 +0200
  4. @@ -103,7 +101,7 @@
  5. shared: lib${PACKAGE}${SHLIB_SUFFIX}
  6. lib${PACKAGE}${SHLIB_SUFFIX}: ${OBJECTS}
  7. - ${SHLIB_LD} ${LDFLAGS} -o ${CFITSIO_SHLIB} ${OBJECTS} -lm ${LIBS_CURL} ${LIBS}
  8. + ${SHLIB_LD} ${LDFLAGS} -o ${CFITSIO_SHLIB} ${OBJECTS} -lm -lz -lbz2 ${LIBS_CURL} ${LIBS}
  9. @if [ "x${CFITSIO_SHLIB_SONAME}" != x ]; then \
  10. ln -sf ${CFITSIO_SHLIB} ${CFITSIO_SHLIB_SONAME}; \
  11. ln -sf ${CFITSIO_SHLIB_SONAME} $@; \
  12. @@ -140,28 +138,28 @@
  13. ${CC} -c ${CFLAGS} ${CPPFLAGS} ${SSE_FLAGS} ${DEFS} $<
  14. smem: smem.o lib${PACKAGE}.a ${OBJECTS}
  15. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm
  16. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz
  17. testprog: testprog.o lib${PACKAGE}.a ${OBJECTS}
  18. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
  19. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
  20. fpack: fpack.o fpackutil.o lib${PACKAGE}.a ${OBJECTS}
  21. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm ${LIBS}
  22. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm -lz ${LIBS}
  23. funpack: funpack.o fpackutil.o lib${PACKAGE}.a ${OBJECTS}
  24. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm ${LIBS}
  25. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm -lz ${LIBS}
  26. fitscopy: fitscopy.o lib${PACKAGE}.a ${OBJECTS}
  27. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
  28. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
  29. speed: speed.o lib${PACKAGE}.a ${OBJECTS}
  30. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
  31. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
  32. imcopy: imcopy.o lib${PACKAGE}.a ${OBJECTS}
  33. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
  34. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
  35. cookbook: cookbook.o lib${PACKAGE}.a ${OBJECTS}
  36. - ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
  37. + ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
  38. eval: # Rebuild eval_* files from flex/bison source
  39. ${FLEX} -t eval.l > eval_l.c1