ports/81795: Update port: shells/bash - add knob to build a statically linked binary
Björn König
bkoenig at cs.tu-berlin.de
Thu Jun 2 08:20:02 UTC 2005
>Number: 81795
>Category: ports
>Synopsis: Update port: shells/bash - add knob to build a statically linked binary
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 02 08:20:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Björn König
>Release: FreeBSD 5.4-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD 5.4-RELEASE-p1 #0: Sat May 14 00:34:35 CEST 2005
root at hoppel.local:/usr/obj/usr/branch/RELENG_5_4/src/sys/HOPPELDESK
>Description:
The patch below adds knobs in the style of 'shells/bash2' to build a statically linked bash.
>How-To-Repeat:
>Fix:
--- Makefile-static.patch begins here ---
--- Makefile.orig Tue Apr 12 08:03:11 2005
+++ Makefile Fri May 27 16:47:51 2005
@@ -56,6 +56,16 @@
--disable-rpath \
--enable-disabled-builtins
+.if defined(WANT_STATIC_BASH) || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ( ${NOSHARED} != "no" && ${NOSHARED} != "NO" ))
+.if !defined(WITHOUT_NLS)
+WITHOUT_NLS=yes
+.endif
+CONFIGURE_ARGS+= --enable-static-link
+PKGNAMESUFFIX= -static
+.else
+CONFIGURE_ARGS+= --enable-static-link=no
+.endif
+
.if defined(WITHOUT_HELP)
CONFIGURE_ARGS+= --disable-help-builtin
PLIST_SUB+= HELP="@comment "
--- Makefile-static.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list