From owner-freebsd-questions@FreeBSD.ORG Wed May 25 08:39:07 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 78A0416A41C for ; Wed, 25 May 2005 08:39:07 +0000 (GMT) (envelope-from vdaelli@hotmail.com) Received: from hotmail.com (bay103-f23.bay103.hotmail.com [65.54.174.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id F063343D4C for ; Wed, 25 May 2005 08:39:06 +0000 (GMT) (envelope-from vdaelli@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 25 May 2005 01:39:06 -0700 Message-ID: Received: from 65.54.174.207 by by103fd.bay103.hotmail.msn.com with HTTP; Wed, 25 May 2005 08:39:06 GMT X-Originating-IP: [65.54.174.207] X-Originating-Email: [vdaelli@hotmail.com] X-Sender: vdaelli@hotmail.com In-Reply-To: <20050524114047.P47072@mail.goinet.com> From: "Valerio Daelli" To: freebsd-questions@freebsd.org Date: Wed, 25 May 2005 08:39:06 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 May 2005 08:39:06.0629 (UTC) FILETIME=[3674EB50:01C56105] Subject: 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 08:39:07 -0000 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 eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline -lhistory -ltermcap -lglob -ltilde /usr/local/lib/libintl.so /usr/local/lib/libiconv.so But I keep getting a #file bash bash: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.4, dynamically linked (uses shared libs), not stripped Thanks a milion Valerio Daelli