add an option to build a static binary
This commit is contained in:
parent
f316bfe194
commit
aa512d520c
@ -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
|
DISTNAME= bash-1.14.7
|
||||||
CATEGORIES= shells
|
CATEGORIES= shells
|
||||||
@ -7,6 +7,12 @@ MASTER_SITE_SUBDIR= bash
|
|||||||
|
|
||||||
MAINTAINER= ports@openbsd.org
|
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:
|
post-install:
|
||||||
@install-info ${PREFIX}/info/bash.info ${PREFIX}/info/dir
|
@install-info ${PREFIX}/info/bash.info ${PREFIX}/info/dir
|
||||||
@echo "Finished installing $(DISTNAME)"
|
@echo "Finished installing $(DISTNAME)"
|
||||||
|
Loading…
Reference in New Issue
Block a user