From cd2f6024fc41f1a4cdd54065061ce5c95bf3991e Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Fri, 18 Mar 2011 21:46:59 +0000 Subject: [PATCH] another change to try and get DLLs working for fortran on cygwin --- fortran/Makefile.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fortran/Makefile.am b/fortran/Makefile.am index 73122dde5..82a0a0eb4 100644 --- a/fortran/Makefile.am +++ b/fortran/Makefile.am @@ -77,15 +77,16 @@ if BUILD_SEPARATE_FORTRAN lib_LTLIBRARIES = libnetcdff.la libnetcdff_la_LDFLAGS = $(AM_LDFLAGS) -version-number 5:1:0 # If we are building the dll (under MinGW) then set the correct flags. +else +noinst_LTLIBRARIES = libnetcdff.la +endif # BUILD_SEPARATE_FORTRAN + +# Turn on some special flags for building DLL. if BUILD_DLL AM_CPPFLAGS += -DDLL_EXPORT libnetcdff_la_LDFLAGS += -no-undefined -Wl,--output-def,netcdffdll.def endif # BUILD_DLL -else -noinst_LTLIBRARIES = libnetcdff.la -endif # BUILD_SEPARATE_FORTRAN - # If F90 is built, include it's convenience library. if BUILD_F90 libnetcdff_la_LIBADD += ${top_builddir}/f90/libnetcdff90.la