Skip to content

Commit

Permalink
Added patch for liblib/Makefile.am
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobstanley committed Aug 31, 2011
1 parent 1762ed1 commit 3fa654a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions liblib-Makefile.am.patch
@@ -0,0 +1,19 @@
diff --git a/liblib/Makefile.am b/liblib/Makefile.am
index c6ab07f..0f4d7bf 100755
--- a/liblib/Makefile.am
+++ b/liblib/Makefile.am
@@ -19,7 +19,7 @@ libnetcdf_la_LIBADD =

# Turn on some extra stuff when building a DLL for windows.
if BUILD_DLL
-libnetcdf_la_LDFLAGS += -no-undefined -Wl,--output-def,netcdfdll.def
+libnetcdf_la_LDFLAGS += -no-undefined -Wl,--output-def,netcdfdll.def,--kill-at
libnetcdf_la_CPPFLAGS += -DDLL_EXPORT
endif # BUILD_DLL

@@ -53,4 +53,4 @@ endif # BUILD_CDMREMOTE
endif #USE_NETCDF4

# We need at least one source file
-libnetcdf_la_SOURCES = stub.c
+libnetcdf_la_SOURCES = stub.c stdcall.c
2 changes: 2 additions & 0 deletions patch-makefile
@@ -0,0 +1,2 @@
#!/bin/sh
patch ../netcdf/liblib/Makefile.am liblib-Makefile.am.patch

0 comments on commit 3fa654a

Please sign in to comment.