1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
Description: Fix paths in examples; remove libdir to make multi-arch safe
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2019-08-06
Forwarded: not-needed
Index: coda-2.25.3/fortran/example.f
===================================================================
--- coda-2.25.3.orig/fortran/example.f
+++ coda-2.25.3/fortran/example.f
@@ -3,7 +3,7 @@
implicit none
C make sure to modify coda.inc when using 32-bit (see comments inside coda.inc)
- include "coda.inc"
+ include "/usr/include/coda.inc"
character*1024 filename
character*32 product_class
Index: coda-2.25.3/fortran/Makefile.in
===================================================================
--- coda-2.25.3.orig/fortran/Makefile.in
+++ coda-2.25.3/fortran/Makefile.in
@@ -14,7 +14,7 @@ WRAPFORTRAN_FLAGS = @WRAPFORTRAN_FLAGS@
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
-libdir = @libdir@
+# libdir =
CPPFLAGS = -I. -I$(includedir) $(WRAPFORTRAN_FLAGS)
CFLAGS = @CFLAGS@
@@ -30,11 +30,11 @@ all: example
coda_fortran.o: coda_fortran.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c coda_fortran.c
-example.o: example.f coda.inc
+example.o: example.f /usr/include/coda.inc
$(F77) $(FFLAGS) -c example.f
example: example.o coda_fortran.o
- $(LD) $(LDFLAGS) -o example example.o coda_fortran.o $(libdir)/libcoda.a $(HDF4LIBS) $(HDF5LIBS) $(LIBS)
+ $(LD) $(LDFLAGS) -o example example.o coda_fortran.o -lcoda $(HDF4LIBS) $(HDF5LIBS) $(LIBS)
clean:
-rm -f *.o $(DEMOS)
|