--- cgnslib_2.5.orig/configure.in 2008-01-19 04:45:16.000000000 +0100
+++ cgnslib_2.5/configure.in 2008-10-15 22:58:22.000000000 +0200
@@ -423,7 +423,7 @@
shared=no
else
CFGFLAGS="-fPIC $CFGFLAGS"
- AR="\$(CC) -shared $SYSCFLAGS -Wl,-rpath,$cgnsdir/\$(SYSTEM)"
+ AR="\$(CC) -shared $SYSCFLAGS -Wl,-soname,libcgns.so.2 -lhdf5"
LIBEXT=so
fi
fi
@@ -478,7 +478,7 @@
test -z "$hdf5dir" && \
AC_MSG_ERROR(need specify the HDF5 directory with --with-hdf5=DIR)
if test -f "$hdf5dir/include/hdf5.h"; then
- HDF5INC=-I$hdf5dir/include
+ HDF5INC="-I$hdf5dir/include -I/usr/lib/openmpi/include"
for a in $exts ; do
if test -f $hdf5dir/lib/libhdf5.$a; then
HDF5LIB=$hdf5dir/lib/libhdf5.$a
--- cgnslib_2.5.orig/configure 2008-01-19 04:45:16.000000000 +0100
+++ cgnslib_2.5/configure 2008-10-15 23:11:41.000000000 +0200
@@ -2048,7 +2048,7 @@
shared=no
else
CFGFLAGS="-fPIC $CFGFLAGS"
- AR="\$(CC) -shared $SYSCFLAGS -Wl,-rpath,$cgnsdir/\$(SYSTEM)"
+ AR="\$(CC) -shared $SYSCFLAGS -Wl,-soname,libcgns.so.2 -lhdf5"
LIBEXT=so
fi
fi
@@ -2143,7 +2143,7 @@
test -z "$hdf5dir" && \
{ echo "configure: error: need specify the HDF5 directory with --with-hdf5=DIR" 1>&2; exit 1; }
if test -f "$hdf5dir/include/hdf5.h"; then
- HDF5INC=-I$hdf5dir/include
+ HDF5INC="-I$hdf5dir/include -I/usr/lib/openmpi/include"
for a in $exts ; do
if test -f $hdf5dir/lib/libhdf5.$a; then
HDF5LIB=$hdf5dir/lib/libhdf5.$a