Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Re: toolchains and dependencies to libgcc_s.so.1
       [not found] ` <20060726190006.GA12305@codepoet.org>
@ 2006-07-26 12:02   ` Erik Andersen
  0 siblings, 0 replies; only message in thread
From: Erik Andersen @ 2006-07-26 12:02 UTC (permalink / raw)
  To: buildroot

On Wed Jul 26, 2006 at 01:00:06PM -0600, Erik wrote:
> On Wed Jul 26, 2006 at 09:04:27AM +0200, ayoub zaki wrote:
> > Hi List,
> >  
> >  I have built toolchains for i386/arm/armeb with buildroot,and
> >  when trying to compile a simple hello world I'm getting a
> >  dependency to libgcc_s.so.1for i386/armeb :
> [----------snip-------------]
> >  Is that a bug in gcc or something else ? and how can I build
> >  toolchains without this problem ?
> 
> This is on purpose.  If you don't like it, it can easily be
> changed by telling gcc to staticly link all needed libgcc stuff
> into each app (often making your target system larger, but not
> always).  Anyway...
> 
> $ cd toolchain_build_XXX/gcc-Y.Y.Y/gcc/
> $ ./configure --help | grep libgcc
>   --disable-shared        don't provide a shared libgcc
> 
> The change then that you are looking for is:
> 
> --- buildroot/toolchain/gcc/gcc-uclibc-3.x.mk	(revision 15746)
> +++ buildroot/toolchain/gcc/gcc-uclibc-3.x.mk	(working copy)
> @@ -175,7 +175,7 @@
>  		--host=$(GNU_HOST_NAME) \
>  		--target=$(REAL_GNU_TARGET_NAME) \
>  		--enable-languages=$(TARGET_LANGUAGES) \
> -		--enable-shared \
> +		--disable-shared \
>  		--disable-__cxa_atexit \
>  		--enable-target-optspace \
>  		--with-gnu-ld \
> @@ -294,7 +294,7 @@
>  		--host=$(REAL_GNU_TARGET_NAME) \
>  		--target=$(REAL_GNU_TARGET_NAME) \
>  		--enable-languages=$(TARGET_LANGUAGES) \
> -		--enable-shared \
> +		--disable-shared \
>  		--with-gxx-include-dir=/usr/include/c++ \
>  		--disable-__cxa_atexit \
>  		--enable-target-optspace \

Forwarded to the buildroot list where this was appropriate.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-26 12:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060726070427.25616.qmail@web26614.mail.ukl.yahoo.com>
     [not found] ` <20060726190006.GA12305@codepoet.org>
2006-07-26 12:02   ` [Buildroot] Re: toolchains and dependencies to libgcc_s.so.1 Erik Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox