Blame SOURCES/hdf5-wrappers.patch

71f737
diff -up hdf5-1.10.7/bin/h5cc.in.wrappers hdf5-1.10.7/bin/h5cc.in
71f737
--- hdf5-1.10.7/bin/h5cc.in.wrappers	2020-10-07 20:24:29.127283333 -0600
71f737
+++ hdf5-1.10.7/bin/h5cc.in	2020-10-07 20:27:05.289536904 -0600
71f737
@@ -89,10 +89,10 @@ CLINKERBASE="@CC@"
71f737
 # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
71f737
 # from the hdf5 build. The order of the flags is intended to give precedence
71f737
 # to the user's flags.
71f737
-H5BLD_CFLAGS="@AM_CFLAGS@ @CFLAGS@"
71f737
+H5BLD_CFLAGS=
71f737
 H5BLD_CPPFLAGS="@AM_CPPFLAGS@ @CPPFLAGS@"
71f737
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
71f737
-H5BLD_LIBS="@LIBS@"
71f737
+H5BLD_LDFLAGS=
71f737
+H5BLD_LIBS=
71f737
 
71f737
 CC="${HDF5_CC:-$CCBASE}"
71f737
 CLINKER="${HDF5_CLINKER:-$CLINKERBASE}"
71f737
@@ -105,7 +105,8 @@ LIBS="${HDF5_LIBS:-$LIBSBASE}"
71f737
 # available library is shared, it will be used by default.  The user can
71f737
 # override either default, although choosing an unavailable library will result
71f737
 # in link errors.
71f737
-STATIC_AVAILABLE="@enable_static@"
71f737
+# Fedora prefers shared libraries
71f737
+STATIC_AVAILABLE=no
71f737
 if test "${STATIC_AVAILABLE}" = "yes"; then
71f737
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
71f737
 else
71f737
@@ -385,7 +386,7 @@ if test "x$do_link" = "xyes"; then
71f737
   # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
71f737
   # from the hdf5 build. The order of the flags is intended to give precedence
71f737
   # to the user's flags.
71f737
-  $SHOW $CLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args $shared_link
71f737
+  $SHOW $CLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args
71f737
   status=$?
71f737
 fi
71f737
 
71f737
diff -up hdf5-1.10.7/c++/src/h5c++.in.wrappers hdf5-1.10.7/c++/src/h5c++.in
71f737
--- hdf5-1.10.7/c++/src/h5c++.in.wrappers	2020-08-27 21:38:23.000000000 -0600
71f737
+++ hdf5-1.10.7/c++/src/h5c++.in	2020-10-07 20:24:29.126283325 -0600
71f737
@@ -87,10 +87,10 @@ CXXLINKERBASE="@CXX@"
71f737
 # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
71f737
 # from the hdf5 build. The order of the flags is intended to give precedence
71f737
 # to the user's flags.
71f737
-H5BLD_CXXFLAGS="@AM_CXXFLAGS@ @CXXFLAGS@"
71f737
+H5BLD_CXXFLAGS=
71f737
 H5BLD_CPPFLAGS="@AM_CPPFLAGS@ @CPPFLAGS@"
71f737
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
71f737
-H5BLD_LIBS="@LIBS@"
71f737
+H5BLD_LDFLAGS=
71f737
+H5BLD_LIBS=
71f737
 
71f737
 CXX="${HDF5_CXX:-$CXXBASE}"
71f737
 CXXLINKER="${HDF5_CLINKER:-$CXXLINKERBASE}"
71f737
@@ -103,7 +103,8 @@ LIBS="${HDF5_LIBS:-$LIBSBASE}"
71f737
 # available library is shared, it will be used by default.  The user can
71f737
 # override either default, although choosing an unavailable library will result
71f737
 # in link errors.
71f737
-STATIC_AVAILABLE="@enable_static@"
71f737
+# Fedora prefers shared libraries
71f737
+STATIC_AVAILABLE=no
71f737
 if test "${STATIC_AVAILABLE}" = "yes"; then
71f737
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
71f737
 else
71f737
@@ -385,7 +386,7 @@ if test "x$do_link" = "xyes"; then
71f737
   # from the hdf5 build. The order of the flags is intended to give precedence
71f737
   # to the user's flags.
71f737
 
71f737
-  $SHOW $CXXLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CXXFLAGS $CXXFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args $shared_link
71f737
+  $SHOW $CXXLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CXXFLAGS $CXXFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args
71f737
 
71f737
   status=$?
71f737
 fi
71f737
diff -up hdf5-1.10.7/fortran/src/h5fc.in.wrappers hdf5-1.10.7/fortran/src/h5fc.in
71f737
--- hdf5-1.10.7/fortran/src/h5fc.in.wrappers	2020-08-27 21:38:23.000000000 -0600
71f737
+++ hdf5-1.10.7/fortran/src/h5fc.in	2020-10-07 20:25:53.793962985 -0600
71f737
@@ -83,11 +83,11 @@ FLINKERBASE="@FC@"
71f737
 # libraries in $link_args, followed by any external library paths and libraries
71f737
 # from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in from the hdf5 build.
71f737
 # The order of the flags is intended to give precedence to the user's flags.
71f737
-H5BLD_FCFLAGS="@AM_FCFLAGS@ @FCFLAGS@"
71f737
+H5BLD_FCFLAGS=
71f737
 F9XMODFLAG="@F9XMODFLAG@"
71f737
 F9XSUFFIXFLAG="@F9XSUFFIXFLAG@"
71f737
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
71f737
-H5BLD_LIBS="@LIBS@"
71f737
+H5BLD_LDFLAGS=
71f737
+H5BLD_LIBS=
71f737
 
71f737
 FC="${HDF5_FC:-$FCBASE}"
71f737
 FLINKER="${HDF5_FLINKER:-$FLINKERBASE}"
71f737
@@ -99,7 +99,8 @@ LIBS="${HDF5_LIBS:-$LIBSBASE}"
71f737
 # available library is shared, it will be used by default.  The user can
71f737
 # override either default, although choosing an unavailable library will result
71f737
 # in link errors.
71f737
-STATIC_AVAILABLE="@enable_static@"
71f737
+# Fedora prefers shared libraries
71f737
+STATIC_AVAILABLE=no
71f737
 if test "${STATIC_AVAILABLE}" = "yes"; then
71f737
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
71f737
 else
71f737
@@ -363,7 +364,7 @@ if test "x$do_link" = "xyes"; then
71f737
   # libraries in $link_args, followed by any external library paths and libraries
71f737
   # from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in from the hdf5 build.
71f737
   # The order of the flags is intended to give precedence to the user's flags.
71f737
-  $SHOW $FLINKER $FCFLAGS $H5BLD_FCFLAGS $F9XSUFFIXFLAG $LDFLAGS $fmodules $link_objs $LIBS $link_args $shared_link
71f737
+  $SHOW $FLINKER $FCFLAGS $H5BLD_FCFLAGS $F9XSUFFIXFLAG $LDFLAGS $fmodules $link_objs $LIBS $link_args
71f737
   status=$?
71f737
 fi
71f737