Skip to content

Commit

Permalink
Fix linking with an upcoming version of Rtools on Windows where netcdf (
Browse files Browse the repository at this point in the history
#141)

Add libraries from pkg-config on Windows
  • Loading branch information
kalibera authored Mar 24, 2024
1 parent d147e6a commit 3adcbb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure.win
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/sh

. ./configure
if [ X"`pkg-config --version 2>/dev/null`" != X ] ; then
./configure LIBS="`pkg-config --libs netcdf`"
else
./configure
fi

0 comments on commit 3adcbb0

Please sign in to comment.