Blame SOURCES/hdf5-wrappers.patch

e51905
diff -up hdf5-1.10.5/c++/src/h5c++.in.wrappers hdf5-1.10.5/c++/src/h5c++.in
e51905
--- hdf5-1.10.5/c++/src/h5c++.in.wrappers	2018-09-03 20:54:43.000000000 -0600
e51905
+++ hdf5-1.10.5/c++/src/h5c++.in	2020-01-26 19:14:11.243718498 -0700
6c0b01
@@ -87,10 +87,10 @@ CXXLINKERBASE="@CXX@"
6c0b01
 # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
6c0b01
 # from the hdf5 build. The order of the flags is intended to give precedence
6c0b01
 # to the user's flags.
6c0b01
-H5BLD_CXXFLAGS="@AM_CXXFLAGS@ @CXXFLAGS@"
6c0b01
+H5BLD_CXXFLAGS=
6c0b01
 H5BLD_CPPFLAGS="@AM_CPPFLAGS@ @CPPFLAGS@"
6c0b01
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
6c0b01
-H5BLD_LIBS="@LIBS@"
6c0b01
+H5BLD_LDFLAGS=
6c0b01
+H5BLD_LIBS=
6c0b01
 
6c0b01
 CXX="${HDF5_CXX:-$CXXBASE}"
6c0b01
 CXXLINKER="${HDF5_CLINKER:-$CXXLINKERBASE}"
6c0b01
@@ -103,7 +103,8 @@ LIBS="${HDF5_LIBS:-$LIBSBASE}"
6c0b01
 # available library is shared, it will be used by default.  The user can
6c0b01
 # override either default, although choosing an unavailable library will result
6c0b01
 # in link errors.
6c0b01
-STATIC_AVAILABLE="@enable_static@"
6c0b01
+# Fedora prefers shared libraries
6c0b01
+STATIC_AVAILABLE=no
6c0b01
 if test "${STATIC_AVAILABLE}" = "yes"; then
6c0b01
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
6c0b01
 else
6c0b01
@@ -385,7 +386,7 @@ if test "x$do_link" = "xyes"; then
6c0b01
   # from the hdf5 build. The order of the flags is intended to give precedence
6c0b01
   # to the user's flags.
6c0b01
 
6c0b01
-  $SHOW $CXXLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CXXFLAGS $CXXFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args $shared_link
6c0b01
+  $SHOW $CXXLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CXXFLAGS $CXXFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args
6c0b01
 
6c0b01
   status=$?
6c0b01
 fi
e51905
diff -up hdf5-1.10.5/fortran/src/h5fc.in.wrappers hdf5-1.10.5/fortran/src/h5fc.in
e51905
--- hdf5-1.10.5/fortran/src/h5fc.in.wrappers	2018-09-03 20:54:44.000000000 -0600
e51905
+++ hdf5-1.10.5/fortran/src/h5fc.in	2020-01-26 19:14:18.699761737 -0700
6c0b01
@@ -83,11 +83,11 @@ FLINKERBASE="@FC@"
e51905
 # libraries in $link_args, followed by any external library paths and libraries 
6c0b01
 # from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in from the hdf5 build.
6c0b01
 # The order of the flags is intended to give precedence to the user's flags.
6c0b01
-H5BLD_FCFLAGS="@AM_FCFLAGS@ @FCFLAGS@"
6c0b01
+H5BLD_FCFLAGS=
6c0b01
 F9XMODFLAG="@F9XMODFLAG@"
6c0b01
 F9XSUFFIXFLAG="@F9XSUFFIXFLAG@"
6c0b01
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
6c0b01
-H5BLD_LIBS="@LIBS@"
6c0b01
+H5BLD_LDFLAGS=
6c0b01
+H5BLD_LIBS=
6c0b01
 
6c0b01
 FC="${HDF5_FC:-$FCBASE}"
6c0b01
 FLINKER="${HDF5_FLINKER:-$FLINKERBASE}"
6c0b01
@@ -99,7 +99,8 @@ LIBS="${HDF5_LIBS:-$LIBSBASE}"
6c0b01
 # available library is shared, it will be used by default.  The user can
6c0b01
 # override either default, although choosing an unavailable library will result
6c0b01
 # in link errors.
6c0b01
-STATIC_AVAILABLE="@enable_static@"
6c0b01
+# Fedora prefers shared libraries
6c0b01
+STATIC_AVAILABLE=no
6c0b01
 if test "${STATIC_AVAILABLE}" = "yes"; then
6c0b01
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
6c0b01
 else
6c0b01
@@ -363,7 +364,7 @@ if test "x$do_link" = "xyes"; then
e51905
   # libraries in $link_args, followed by any external library paths and libraries 
6c0b01
   # from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in from the hdf5 build.
6c0b01
   # The order of the flags is intended to give precedence to the user's flags.
6c0b01
-  $SHOW $FLINKER $FCFLAGS $H5BLD_FCFLAGS $F9XSUFFIXFLAG $LDFLAGS $fmodules $link_objs $LIBS $link_args $shared_link
6c0b01
+  $SHOW $FLINKER $FCFLAGS $H5BLD_FCFLAGS $F9XSUFFIXFLAG $LDFLAGS $fmodules $link_objs $LIBS $link_args
6c0b01
   status=$?
6c0b01
 fi
6c0b01
 
e51905
diff -up hdf5-1.10.5/bin//h5cc.in.wrappers hdf5-1.10.5/tools/src/misc/h5cc.in
e51905
--- hdf5-1.10.5/bin/h5cc.in.wrappers	2018-09-03 20:54:44.000000000 -0600
e51905
+++ hdf5-1.10.5/bin/h5cc.in	2020-01-26 19:13:58.079642156 -0700
e51905
@@ -89,10 +89,10 @@ CLINKERBASE="@CC@"
e51905
 # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in 
e51905
 # from the hdf5 build. The order of the flags is intended to give precedence
e51905
 # to the user's flags.
e51905
-H5BLD_CFLAGS="@AM_CFLAGS@ @CFLAGS@"
e51905
+H5BLD_CFLAGS=
e51905
 H5BLD_CPPFLAGS="@AM_CPPFLAGS@ @CPPFLAGS@"
e51905
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
e51905
-H5BLD_LIBS="@LIBS@"
e51905
+H5BLD_LDFLAGS=
e51905
+H5BLD_LIBS=
e51905
 
e51905
 CC="${HDF5_CC:-$CCBASE}"
e51905
 CLINKER="${HDF5_CLINKER:-$CLINKERBASE}"
e51905
@@ -105,7 +105,8 @@ LIBS="${HDF5_LIBS:-$LIBSBASE}"
e51905
 # available library is shared, it will be used by default.  The user can 
e51905
 # override either default, although choosing an unavailable library will result
e51905
 # in link errors.  
e51905
-STATIC_AVAILABLE="@enable_static@"
e51905
+# Fedora prefers shared libraries
e51905
+STATIC_AVAILABLE=no
e51905
 if test "${STATIC_AVAILABLE}" = "yes"; then
e51905
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
e51905
 else
e51905
@@ -392,7 +393,7 @@ if test "x$do_link" = "xyes"; then
e51905
   # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in 
e51905
   # from the hdf5 build. The order of the flags is intended to give precedence
e51905
   # to the user's flags.
e51905
-  $SHOW $CLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args $shared_link
e51905
+  $SHOW $CLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args
e51905
   status=$?
e51905
 fi
e51905