From owner-freebsd-questions@FreeBSD.ORG Wed May 25 14:57:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57B8316A41C for ; Wed, 25 May 2005 14:57:35 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 048ED43D48 for ; Wed, 25 May 2005 14:57:34 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j4PEvWaa033805; Wed, 25 May 2005 09:57:32 -0500 (CDT) (envelope-from dan) Date: Wed, 25 May 2005 09:57:32 -0500 From: Dan Nelson To: Valerio Daelli Message-ID: <20050525145732.GA13062@dan.emsphone.com> References: <20050524114047.P47072@mail.goinet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: Statically linked bash X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 14:57:35 -0000 In the last episode (May 25), Valerio Daelli said: > Hello > we are trying to compile a statically linked bash from ports. > I edited the Makefile in /usr/ports/shells/bash with '--enable-static-link' > in CONFIGURE_ARGS. > But it didn't work (it compiled a dynamically linked one). > So I entered in work/bash-3.0 and configured by and with > > ./configure ...DEFAULT_ARGS... --enable-static-link > > But it didn't work. > So I edited every Makefile in these directories, to include in every gcc > argument -static. > But It didn't work. > That's the last compile operation (notice the -static) > > gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob > -L./lib/tilde -L./lib/sh -static -static -rdynamic -g -O2 -o bash shell.o You need to get rid of the -rdynamic option. -- Dan Nelson dnelson@allantgroup.com