Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jun 2005 10:11:38 +0200
From:      "Björn König" <bkoenig@cs.tu-berlin.de>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        eik@FreeBSD.org
Subject:   ports/81795: Update port: shells/bash - add knob to build a statically linked binary
Message-ID:  <1117699898.0@hoppel.local>
Resent-Message-ID: <200506020820.j528K1qc055655@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1117699898.0>