diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/hdf-eos5/hdf-eos5.nondarwin-no-single_module.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/hdf-eos5/hdf-eos5.nondarwin-no-single_module.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf-eos5/hdf-eos5.nondarwin-no-single_module.patch b/var/spack/repos/builtin/packages/hdf-eos5/hdf-eos5.nondarwin-no-single_module.patch new file mode 100644 index 0000000000..a86c85dfe6 --- /dev/null +++ b/var/spack/repos/builtin/packages/hdf-eos5/hdf-eos5.nondarwin-no-single_module.patch @@ -0,0 +1,28 @@ +# This patch removes the default(?) setting of passing -single_module +# flag to the loader. From what I can gather, only the Darwin loader +# supports that, so this patch allows building on non-Darwin systems + +diff -Naur spack-src/src/Makefile.am spack-src.patched/src/Makefile.am +--- spack-src/src/Makefile.am 2007-03-29 12:59:47.000000000 -0400 ++++ spack-src.patched/src/Makefile.am 2020-12-04 11:25:50.789164073 -0500 +@@ -10,7 +10,7 @@ + + # Set LDFLAGS to allow the HDF-EOS library to use extern variables from + # HDF5 +-LDFLAGS=-Wl,-single_module ++#LDFLAGS=-Wl,-single_module + + # Build HDF-EOS5 + lib_LTLIBRARIES=libhe5_hdfeos.la +diff -Naur spack-src/src/Makefile.in spack-src.patched/src/Makefile.in +--- spack-src/src/Makefile.in 2010-08-30 11:47:05.000000000 -0400 ++++ spack-src.patched/src/Makefile.in 2020-12-04 11:26:00.201443245 -0500 +@@ -126,7 +126,7 @@ + + # Set LDFLAGS to allow the HDF-EOS library to use extern variables from + # HDF5 +-LDFLAGS = -Wl,-single_module ++#LDFLAGS = -Wl,-single_module + LIBOBJS = @LIBOBJS@ + LIBS = @LIBS@ + LIBTOOL = @LIBTOOL@ |