ports/shells/bash/files/patch-Makefile.in
Emanuel Haupt aa878105d8 Do not attempt to build 'loadables' in the install target when the static build
option is selected.

Loadables will not build statically. The upstream makefile handles this by
ignoring a non-zero exit status by prefixing the build instruction with a minus.
Nevertheless this causes plenty of confusion among our user base.

No PORTREVISION bump as this is a NOOP.
2019-02-21 09:32:08 +00:00

12 lines
483 B
Text

--- Makefile.in.orig 2018-05-25 12:47:09 UTC
+++ Makefile.in
@@ -824,7 +824,9 @@ install: .made installdirs
infodir=$(infodir) htmldir=$(htmldir) DESTDIR=$(DESTDIR) $@ )
-( cd $(DEFDIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
-( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
+.if !$(STATIC_LD:M-static)
-( cd $(LOADABLES_DIR) && $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
+.endif
install-strip:
$(MAKE) $(MFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \