Date: Wed, 25 May 2005 09:57:32 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Valerio Daelli <vdaelli@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Statically linked bash Message-ID: <20050525145732.GA13062@dan.emsphone.com> In-Reply-To: <BAY103-F23CDDFADEF19C319461BC6B00E0@phx.gbl> References: <20050524114047.P47072@mail.goinet.com> <BAY103-F23CDDFADEF19C319461BC6B00E0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050525145732.GA13062>