diff --git a/shells/bash/Makefile b/shells/bash/Makefile index 32f2a6958f8..d921c0402dc 100644 --- a/shells/bash/Makefile +++ b/shells/bash/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.8 1999/12/08 05:26:44 brad Exp $ +# $OpenBSD: Makefile,v 1.9 1999/12/10 14:21:38 brad Exp $ DISTNAME= bash-1.14.7 CATEGORIES= shells @@ -7,6 +7,12 @@ MASTER_SITE_SUBDIR= bash MAINTAINER= ports@openbsd.org +# invoke make with STATIC=yes to build a static binary +.if defined(STATIC) && ${STATIC:U} == YES +MAKE_ENV= CPP_DEFINES="-DSYSDEP_LDFLAGS=-static" +PKGNAME= ${DISTNAME}-static +.endif + post-install: @install-info ${PREFIX}/info/bash.info ${PREFIX}/info/dir @echo "Finished installing $(DISTNAME)"