view src/of-fits-1-cross-fixes.patch @ 6280:1f1717e8de5e

of-strings: update to v1.3.0 * src/of-strings-1-fixes.patch, src/of-strings-2-error_state.patch: deleted * src/of-strings.mk: update version, checksum * dist-files.mk: remove ref to deleted files
author John Donoghue <john.donoghue@ieee.org>
date Thu, 30 Jun 2022 10:57:54 -0400
parents 97ad836259c3
children
line wrap: on
line source

diff -ur fits-1.0.7.orig/src/Makefile fits-1.0.7/src/Makefile
--- fits-1.0.7.orig/src/Makefile	2016-02-25 13:08:47.394452025 -0500
+++ fits-1.0.7/src/Makefile	2016-02-25 13:10:40.437730825 -0500
@@ -1,4 +1,6 @@
-MKOCT_FLAGS = $(shell pkg-config --libs cfitsio --cflags cfitsio)
+MKOCTFILE ?= mkoctfile
+PKG_CONFIG ?= pkg-config
+MKOCT_FLAGS = $(shell $(PKG_CONFIG) --libs cfitsio --cflags cfitsio) -lz
 
 all: read_fits_image.oct save_fits_image.oct save_fits_image_multi_ext.oct
 
@@ -6,5 +8,5 @@
 	rm -f *.oct *.o
 
 %.oct: %.cc
-	mkoctfile --verbose -Wall $(MKOCT_FLAGS) $<
+	$(MKOCTFILE) --verbose -Wall $(MKOCT_FLAGS) $<