Skip to content

Commit

Permalink
Fix multilib and underlinking problems in pkg-config files
Browse files Browse the repository at this point in the history
* Using @libdir@ instead of hardcoding .../lib allows mor flexibility for
  downstream projects
* Projects need to link against libnetcdf in addition

Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Jan 1, 2014
1 parent 2f23b1f commit 030c72b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ncxx4-config.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
libdir=@libdir@
includedir=${prefix}/include

cc="@CC@"
cxx="@CXX@"
fc="@FC@"
cflags=" -I${includedir} @CPPFLAGS@"
fflags="@FFLAGS@ @MOD_FLAG@${includedir}"
libs="-L${libdir} @NC_LIBS@"
libs="-L${libdir} @NC_LIBS@ -lnetcdf"
flibs="-L${libdir} @NC_FLIBS@"
has_dap="@HAS_DAP@"
has_nc2="@HAS_NC2@"
Expand Down
2 changes: 1 addition & 1 deletion netcdf-cxx4.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Description: NetCDF C++ Client Library
Version: @PACKAGE_VERSION@
Libs: -L${libdir} @NC_LIBS@
Cflags: -I${includedir}

Requires: netcdf

0 comments on commit 030c72b

Please sign in to comment.