-
Notifications
You must be signed in to change notification settings - Fork 823
Support for compiling on cygwin #911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
238980b
e8d636d
68dd969
9065ab4
ebb7bcb
b0a2636
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -180,12 +180,12 @@ USENETCDF="" | |
| if [ -n "$NETCDF" ] ; then | ||
| echo "Will use NETCDF in dir: $NETCDF" | ||
| # Oh UNIDATA, why make it so hard ... | ||
| if [ -f "$NETCDF/lib/libnetcdff.a" -o -f "$NETCDF/lib/libnetcdff.so" ] ; then | ||
| if [ -f "$NETCDF/lib/libnetcdff.a" -o -f "$NETCDF/lib/libnetcdff.so" -o -f "${NETCDF}/lib/libnetcdff.dll.a" ] ; then | ||
| USENETCDFF="-lnetcdff" | ||
| else | ||
| USENETCDFF=" " | ||
| fi | ||
| if [ -f "$NETCDF/lib/libnetcdf.a" -o -f "$NETCDF/lib/libnetcdf.so" ] ; then | ||
| if [ -f "$NETCDF/lib/libnetcdf.a" -o -f "$NETCDF/lib/libnetcdf.so" -o -f "${NETCDF}/lib/libnetcdf.dll.a" ] ; then | ||
| USENETCDF="-lnetcdf" | ||
| else | ||
| USENETCDF=" " | ||
|
|
@@ -204,7 +204,7 @@ fi | |
|
|
||
| # If the user asked for classic netcdf, acquiesce to the request. | ||
|
|
||
| if [ "`uname`" = "Linux" ] ; then | ||
| if [ "`uname`" = "Linux" -o "`uname -o`" = "Cygwin" ] ; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is uname -o correct?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The -o option trims the "10.0" and changes the string from "CYGWIN_NT" to "Cygwin"? |
||
| ans="`whereis nf-config`" | ||
| elif [ "`uname`" = "Darwin" ] ; then | ||
| ans="`which nf-config`" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find any way to generate an
external/wavelet/libWavelet.a, so I removed that link here and did not add it for the Cygwin link line. If that archive was moved somewhere rather than removed, I should change these to point to the new location.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wavelet library looks to be part of the data assimilation. It is located in var/external.