spack/var/spack/repos/builtin/packages/shtools/nolibtool.patch
Erik Schnetter 91a6e38404
shtools: disable libtool, add 4.9.1, fix --test=root (#27014)
The Makefile expects the "other" libtool, not the GNU libtool we have in Spack.
Closes https://github.com/spack/spack/issues/26993
Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
2021-11-03 23:33:52 +01:00

17 lines
550 B
Diff

--- a/src/Makefile
+++ b/src/Makefile
@@ -80,10 +80,10 @@
@echo "--> Compilation of source files successful"
@echo
@rm -f $(PROG)
- $(LIBTOOL) $(LIBTOOLFLAGS) -o $(PROG) $(OBJS)
+# $(LIBTOOL) $(LIBTOOLFLAGS) -o $(PROG) $(OBJS)
# If you prefer to use libtool, uncomment the above line, and comment the two lines below (AR and RLIB)
-# $(AR) $(ARFLAGS) $(PROG) $(OBJS)
-# $(RLIB) $(RLIBFLAGS) $(PROG)
+ $(AR) $(ARFLAGS) $(PROG) $(OBJS)
+ $(RLIB) $(RLIBFLAGS) $(PROG)
@echo
@echo "--> Creation of static library successful"
# @rm -f $(OBJS)